Skip to content

agents / Exports / AgentConfig

Interface: AgentConfig

Agent configuration options - New design with aiProviders array and defaultModel

Table of contents

Properties

Properties

id

Optional id: string

Defined in

packages/agents/src/interfaces/agent.ts:102


name

name: string

Defined in

packages/agents/src/interfaces/agent.ts:103


aiProviders

aiProviders: AIProvider[]

Defined in

packages/agents/src/interfaces/agent.ts:104


defaultModel

defaultModel: Object

Type declaration

NameType
providerstring
modelstring
temperature?number
maxTokens?number
topP?number
systemMessage?string

Defined in

packages/agents/src/interfaces/agent.ts:105


tools

Optional tools: BaseTool<BaseToolParameters, ToolResult>[]

Defined in

packages/agents/src/interfaces/agent.ts:115


plugins

Optional plugins: BasePlugin<BasePluginOptions, PluginStats>[]

Defined in

packages/agents/src/interfaces/agent.ts:116


modules

Optional modules: BaseModule<BaseModuleOptions, ModuleStats>[]

Defined in

packages/agents/src/interfaces/agent.ts:119


systemMessage

Optional systemMessage: string

Defined in

packages/agents/src/interfaces/agent.ts:122


systemPrompt

Optional systemPrompt: string

Defined in

packages/agents/src/interfaces/agent.ts:123


conversationId

Optional conversationId: string

Defined in

packages/agents/src/interfaces/agent.ts:126


sessionId

Optional sessionId: string

Defined in

packages/agents/src/interfaces/agent.ts:127


userId

Optional userId: string

Defined in

packages/agents/src/interfaces/agent.ts:128


metadata

Optional metadata: MessageMetadata

Defined in

packages/agents/src/interfaces/agent.ts:131


context

Optional context: Record<string, ConfigValue>

Defined in

packages/agents/src/interfaces/agent.ts:132


logging

Optional logging: Object

Type declaration

NameType
level?UtilLogLevel
enabled?boolean
format?string
destination?string

Defined in

packages/agents/src/interfaces/agent.ts:135


providerConfig

Optional providerConfig: ProviderConfig

Defined in

packages/agents/src/interfaces/agent.ts:143


stream

Optional stream: boolean

Defined in

packages/agents/src/interfaces/agent.ts:146


toolChoice

Optional toolChoice: string

Defined in

packages/agents/src/interfaces/agent.ts:147


responseFormat

Optional responseFormat: ResponseFormatConfig

Defined in

packages/agents/src/interfaces/agent.ts:148


safetySettings

Optional safetySettings: SafetySetting[]

Defined in

packages/agents/src/interfaces/agent.ts:149


timeout

Optional timeout: number

Defined in

packages/agents/src/interfaces/agent.ts:152


retryAttempts

Optional retryAttempts: number

Defined in

packages/agents/src/interfaces/agent.ts:153


rateLimiting

Optional rateLimiting: Object

Type declaration

NameType
enabled?boolean
maxRequests?number
windowMs?number

Defined in

packages/agents/src/interfaces/agent.ts:154

Released under the MIT License.