Chore/model bump#29
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the project’s AI/LLM dependency set (notably pydantic-ai) and wires in per-agent “thinking”/reasoning controls via model_settings to better constrain when agents should (or shouldn’t) do extended reasoning.
Changes:
- Bump
pydantic-aiand multiple related provider/SDK dependencies (OpenAI/Anthropic/Cohere/Mistral/etc.) viapyproject.toml,requirements.txt, anduv.lock. - Add
model_settings={'thinking': False}to several “tooling”/utility agents and setmodel_settings={'thinking': 'high'}for the main deck-construction agent. - Adjust memory-writing behavior to raise
ModelRetry(with logging) when too many related card UUIDs are provided, improving agent retry behavior.
Reviewed changes
Copilot reviewed 6 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
uv.lock |
Locks updated dependency graph reflecting the model/SDK bumps and new transitive deps. |
requirements.txt |
Exported requirements updated to match the new locked dependency set. |
pyproject.toml |
Raises minimum pydantic-ai version to >=1.87.0. |
app/appai/services/agents/tools/memory_tools.py |
Uses ModelRetry for invalid tool input and disables “thinking” for memory subagents via model_settings. |
app/appai/services/agents/guardrails.py |
Disables “thinking” for the guardrail agent to keep relevance checks lightweight. |
app/appai/services/agents/filter_constructor.py |
Disables “thinking” for filter construction agent to constrain reasoning/latency. |
app/appai/services/agents/deck_theme.py |
Disables “thinking” for daily theme generation agent. |
app/appai/services/agents/deck_constructor.py |
Sets high “thinking” for the main deck constructor while disabling it for classifier/replacement subagents; also updates the system prompt guidance. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds reasoning levels to models to constrain thinking.
Ecourages main agent to run parallel searches.