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

Support a callable model #312

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

liorheber
Copy link

This update enhances the Agent class by allowing models to be specified as string, Model object, or callable.
This mirrors the flexibility already available for system prompts.

Key Features

  • Flexible Model Configuration: Models can now be dynamically set using functions, offering more adaptability.
  • Consistent Interface: Maintains backward compatibility with existing model provider interfaces.

Why This Matters
This change makes the Agent class more versatile, allowing dynamic model selection based on context, which is especially useful for complex workflows.

Assurance
All tests, linting, and type-checking pass.

@liorheber liorheber mentioned this pull request Mar 24, 2025
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.

1 participant