Skip to content

ema / config / AgentConfig

Class: AgentConfig

Defined in: packages/ema/src/config.ts:233

Agent configuration.

Constructors

Constructor

ts
new AgentConfig(
   maxSteps, 
   workspaceDir, 
   systemPromptFile, 
   tokenLimit): AgentConfig;

Defined in: packages/ema/src/config.ts:234

Parameters

maxSteps

number = 50

The maximum number of steps the agent can take.

workspaceDir

string = "./workspace"

The workspace directory for the agent.

systemPromptFile

string = "system_prompt.md"

The system prompt file for the agent.

tokenLimit

number = 80000

The token limit for the agent.

Returns

AgentConfig

Properties

maxSteps

ts
readonly maxSteps: number = 50;

Defined in: packages/ema/src/config.ts:238

The maximum number of steps the agent can take.


systemPromptFile

ts
readonly systemPromptFile: string = "system_prompt.md";

Defined in: packages/ema/src/config.ts:246

The system prompt file for the agent.


tokenLimit

ts
readonly tokenLimit: number = 80000;

Defined in: packages/ema/src/config.ts:250

The token limit for the agent.


workspaceDir

ts
readonly workspaceDir: string = "./workspace";

Defined in: packages/ema/src/config.ts:242

The workspace directory for the agent.