Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor agent to accept agent config #3430

Merged
merged 4 commits into from
Aug 17, 2024
Merged

Refactor agent to accept agent config #3430

merged 4 commits into from
Aug 17, 2024

Conversation

enyst
Copy link
Collaborator

@enyst enyst commented Aug 17, 2024

This PR proposes to start adapting agent config to use for each agent options, similarly as we do with LLM / LLMConfig.

Agent configs will likely have more attributes than today in the near future. I think that in a follow-up PR, we can move embeddings options from LLMConfig to a MemoryConfig, part of agent config (e.g. allow to enable/disable history summarization or caching per agent). Since those are not the same models, they don't quite belong with the completion LLM settings already. Also, LLMConfig is becoming quite large itself, it seems like we can break from it the stuff that is different after all.

  • send both llm and agent_config for initialization of an agent.

@enyst enyst marked this pull request as draft August 17, 2024 01:29
@enyst enyst marked this pull request as ready for review August 17, 2024 11:03
Copy link
Contributor

@xingyaoww xingyaoww left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Though we probably need to start properly document different components of our config at some point 🤔

@enyst enyst merged commit 92b1a2d into main Aug 17, 2024
@enyst enyst deleted the enyst/agent_config branch August 17, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants