Manage AI Execution Contexts in Wacht
fetchExecutionContexts(options?: ListExecutionContextsOptions)
options
(optional): An object containing pagination and filtering options.
page
(number): The page number to retrieve.per_page
(number): The number of items per page.agent_id
(string): Filter by agent ID.workflow_id
(string): Filter by workflow ID.Promise<ExecutionContextListResponse>
: A promise that resolves to a list of AI execution contexts and pagination information.
fetchExecutionContext(id: string)
id
(string): The unique identifier of the AI execution context.Promise<AiExecutionContext>
: A promise that resolves to the AI execution context object.
createExecutionContext(request: CreateAiExecutionContextRequest)
request
(CreateAiExecutionContextRequest): The request body containing the details of the new AI execution context.Promise<AiExecutionContext>
: A promise that resolves to the newly created AI execution context object.
updateExecutionContext(id: string, request: UpdateExecutionContextRequest)
id
(string): The unique identifier of the AI execution context to update.request
(UpdateExecutionContextRequest): The request body containing the updated details of the AI execution context.Promise<AiExecutionContext>
: A promise that resolves to the updated AI execution context object.
deleteExecutionContext(id: string)
id
(string): The unique identifier of the AI execution context to delete.Promise<void>
: A promise that resolves when the execution context is successfully deleted.