agents / Exports / AgentConfig
Interface: AgentConfig
Agent configuration options - New design with aiProviders array and defaultModel
Table of contents
Properties
- id
- name
- aiProviders
- defaultModel
- tools
- plugins
- modules
- systemMessage
- systemPrompt
- conversationId
- sessionId
- userId
- metadata
- context
- logging
- providerConfig
- stream
- toolChoice
- responseFormat
- safetySettings
- timeout
- retryAttempts
- rateLimiting
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
Name | Type |
---|---|
provider | string |
model | string |
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
Name | Type |
---|---|
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
Name | Type |
---|---|
enabled? | boolean |
maxRequests? | number |
windowMs? | number |