Skip to main content

create

client.agentExecutionPhases.create(data: CreateAgentExecutionPhaseRequest): Promise<AgentExecutionPhase>

Creates a new execution phase.

Defines a new phase in the agent execution lifecycle. The phase will be available for agents to transition through during their execution.

Parameters

ParameterTypeRequiredDescription
dataCreateAgentExecutionPhaseRequestYesThe phase creation payload

Returns

Promise<AgentExecutionPhase> — A promise that resolves to the newly created AgentExecutionPhase

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.agentExecutionPhases.create(/* CreateAgentExecutionPhaseRequest */);
console.log(result);