Skip to content

feat(models): add ModelInfo and list_models functionality #57

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

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

pierrevalade
Copy link
Contributor

Add ModelInfo class to represent detailed model information including metadata like provider, pricing, and capabilities. Implement list_models method on Agent class to fetch available models with their full details.

Changes: - Add ModelMetadata and ModelInfo classes with comprehensive model attributes - Implement list_models() method on Agent class - Add unit tests for model listing functionality - Update agent test fixtures with new model info structure

Add ModelInfo class to represent detailed model information including metadata like provider, pricing, and capabilities. Implement list_models method on Agent class to fetch available models with their full details.

Changes: - Add ModelMetadata and ModelInfo classes with comprehensive model attributes - Implement list_models() method on Agent class - Add unit tests for model listing functionality - Update agent test fixtures with new model info structure
@pierrevalade pierrevalade requested a review from guillaq February 17, 2025 17:49
@pierrevalade pierrevalade marked this pull request as ready for review February 17, 2025 21:15
Copy link
Collaborator

@guillaq guillaq left a comment

Choose a reason for hiding this comment

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

Nice ! A test needs fixed but all good otherwise

…age[T] class for consistent pagination responses - Update ListModelsResponse to inherit from Page[ModelInfo] - Fix type checking error in agent_test.py with proper null check - Remove redundant count field from ListModelsResponse
@pierrevalade
Copy link
Contributor Author

@guillaq ready for re-review, thank you!

@guillaq guillaq merged commit 48ecb43 into main Feb 18, 2025
5 checks passed
@guillaq guillaq deleted the feature/add-audio-field-support branch February 18, 2025 17:48
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