Preparing search index...
The search index is not available
gpt-programmer
gpt-programmer
BaseAction
Class BaseAction<K>
Type Parameters
K
=
void
Hierarchy (
view full
)
BaseAction
StandardAction
Index
Constructors
constructor
Properties
action
client
context
context
Id
history
id
max
Depth
model
schema
verbose
Accessors
last
Message
Methods
determine
Command
dewrap
Text
perform
push
Message
save
Self
unshift
Message
update
Context
Constructors
constructor
new
Base
Action
<
K
>
(
data
)
:
BaseAction
<
K
>
Type Parameters
K
=
void
Parameters
data
:
BaseActionData
<
K
>
Returns
BaseAction
<
K
>
Properties
action
action
:
(
(
content
)
=>
Promise
<
{
data
?:
K
;
message
:
string
;
}
>
)
Type declaration
(
content
)
:
Promise
<
{
data
?:
K
;
message
:
string
;
}
>
Parameters
content
:
any
Returns
Promise
<
{
data
?:
K
;
message
:
string
;
}
>
client
client
:
OpenAI
context
context
:
string
context
Id
context
Id
:
string
history
history
:
Message
[]
= []
id
id
:
string
max
Depth
max
Depth
:
number
model
model
:
string
schema
schema
:
ZodType
<
any
,
ZodTypeDef
,
any
>
verbose
verbose
:
boolean
Accessors
last
Message
get
lastMessage
(
)
:
Message
Returns
Message
Methods
determine
Command
determine
Command
(
content
)
:
Promise
<
{
data
?:
K
;
message
:
string
;
}
>
Parameters
content
:
string
Returns
Promise
<
{
data
?:
K
;
message
:
string
;
}
>
Private
dewrap
Text
dewrap
Text
(
text
)
:
string
Parameters
text
:
string
Returns
string
perform
perform
(
task
,
role
?
,
depth
?
)
:
Promise
<
void
|
K
>
Parameters
task
:
string
role
:
Role
= "user"
depth
:
number
= 0
Returns
Promise
<
void
|
K
>
push
Message
push
Message
(
__namedParameters
)
:
void
Parameters
__namedParameters
:
{
content
:
string
;
id
?:
string
;
role
:
Role
;
}
content
:
string
Optional
id
?:
string
role
:
Role
Returns
void
save
Self
save
Self
(
prefix
?
)
:
void
Parameters
prefix
:
string
= "debug"
Returns
void
unshift
Message
unshift
Message
(
__namedParameters
)
:
void
Parameters
__namedParameters
:
{
content
:
string
;
id
?:
string
;
role
:
Role
;
}
content
:
string
Optional
id
?:
string
role
:
Role
Returns
void
update
Context
update
Context
(
content
)
:
void
Parameters
content
:
string
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
action
client
context
context
Id
history
id
max
Depth
model
schema
verbose
last
Message
determine
Command
dewrap
Text
perform
push
Message
save
Self
unshift
Message
update
Context
gpt-programmer
Loading...
Generated using
TypeDoc