-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Description
The AgentConfig type currently has several properties that are also defined in ToolContext, causing duplication and potential confusion. This issue proposes removing these duplicated properties from AgentConfig and relying solely on ToolContext for them.
Current Duplication
- AgentConfig defines: provider, model, maxTokens, and temperature
- ToolContext already defines: provider and model
Proposed Changes
- Remove provider, model, maxTokens, and temperature from AgentConfig
- Keep only maxIterations and getSystemPrompt in AgentConfig
- Update all code that uses AgentConfig to get these properties from ToolContext instead
- Update DEFAULT_CONFIG to remove these properties
- Ensure all callers of toolAgent pass the correct ToolContext with these properties
This change will simplify the codebase and remove confusion about where these configuration values should be set.
Metadata
Metadata
Assignees
Labels
No labels