Skip to main content

AgentStep

@codebolt/agent


Class: AgentStep

Defined in: packages/agent/src/unified/base/agentStep.ts:13

Unified agent step that handles LLM interaction and tool call analysis

Implements​

  • AgentStepInterface

Constructors​

Constructor​

new AgentStep(options: {
llmRole?: string;
postInferenceProcessors?: PostInferenceProcessor[];
preInferenceProcessors?: PreInferenceProcessor[];
}): AgentStep;

Defined in: packages/agent/src/unified/base/agentStep.ts:20

Parameters​

ParameterType
options{ llmRole?: string; postInferenceProcessors?: PostInferenceProcessor[]; preInferenceProcessors?: PreInferenceProcessor[]; }
options.llmRole?string
options.postInferenceProcessors?PostInferenceProcessor[]
options.preInferenceProcessors?PreInferenceProcessor[]

Returns​

AgentStep

Methods​

executeStep()​

executeStep(originalRequest: FlatUserMessage, createdMessage: ProcessedMessage): Promise<AgentStepOutput>;

Defined in: packages/agent/src/unified/base/agentStep.ts:34

Execute a single agent step

Parameters​

ParameterType
originalRequestFlatUserMessage
createdMessageProcessedMessage

Returns​

Promise<AgentStepOutput>

Implementation of​

AgentStepInterface.executeStep

getLLMConfig()​

getLLMConfig(): string;

Defined in: packages/agent/src/unified/base/agentStep.ts:103

Get current LLM configuration

Returns​

string


getPostInferenceProcessors()​

getPostInferenceProcessors(): PostInferenceProcessor[];

Defined in: packages/agent/src/unified/base/agentStep.ts:120

Returns​

PostInferenceProcessor[]


getPreInferenceProcessors()​

getPreInferenceProcessors(): PreInferenceProcessor[];

Defined in: packages/agent/src/unified/base/agentStep.ts:111

Returns​

PreInferenceProcessor[]


setLLMConfig()​

setLLMConfig(config: string): void;

Defined in: packages/agent/src/unified/base/agentStep.ts:96

Update LLM configuration

Parameters​

ParameterType
configstring

Returns​

void


updatePostInferenceProcessors()​

updatePostInferenceProcessors(processors: PostInferenceProcessor[]): void;

Defined in: packages/agent/src/unified/base/agentStep.ts:116

Parameters​

ParameterType
processorsPostInferenceProcessor[]

Returns​

void


updatePreInferenceProcessors()​

updatePreInferenceProcessors(processors: PreInferenceProcessor[]): void;

Defined in: packages/agent/src/unified/base/agentStep.ts:107

Parameters​

ParameterType
processorsPreInferenceProcessor[]

Returns​

void