@deskcreate/agentcraft
Preparing search index...
index
AgentWorkflowConfig
Interface AgentWorkflowConfig<TInput>
Definition passed to AgentWorkflow.create().
interface
AgentWorkflowConfig
<
TInput
=
unknown
>
{
id
?:
string
;
input
?:
ZodType
<
TInput
,
ZodTypeDef
,
TInput
>
;
onStepComplete
?:
(
stepId
:
string
,
output
:
unknown
,
ctx
:
WorkflowContext
<
TInput
>
,
)
=>
void
|
Promise
<
void
>
;
onStepError
?:
(
stepId
:
string
,
error
:
Error
,
ctx
:
WorkflowContext
<
TInput
>
,
)
=>
void
|
Promise
<
void
>
;
steps
:
readonly
WorkflowStep
[]
;
workspace
?:
AgentWorkspaceInstance
;
}
Type Parameters
TInput
=
unknown
Index
Properties
id?
input?
on
Step
Complete?
on
Step
Error?
steps
workspace?
Properties
Optional
Readonly
id
id
?:
string
Optional
Readonly
input
input
?:
ZodType
<
TInput
,
ZodTypeDef
,
TInput
>
Optional
Readonly
on
Step
Complete
onStepComplete
?:
(
stepId
:
string
,
output
:
unknown
,
ctx
:
WorkflowContext
<
TInput
>
,
)
=>
void
|
Promise
<
void
>
Optional
Readonly
on
Step
Error
onStepError
?:
(
stepId
:
string
,
error
:
Error
,
ctx
:
WorkflowContext
<
TInput
>
,
)
=>
void
|
Promise
<
void
>
Readonly
steps
steps
:
readonly
WorkflowStep
[]
Optional
Readonly
workspace
workspace
?:
AgentWorkspaceInstance
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
id
input
on
Step
Complete
on
Step
Error
steps
workspace
@deskcreate/agentcraft
Loading...
Definition passed to AgentWorkflow.create().