-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add Tool.from_schema requires_approval argument
#3633
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
base: main
Are you sure you want to change the base?
Add Tool.from_schema requires_approval argument
#3633
Conversation
|
I need this fix/feature (I'm not sure how to name it) to implement a consistent solution for the project we are working on at our company. |
…b.com/SergiFuster/pydantic-ai into fix/tool-from-schema-requires-aproval
| calls: dict[str, DeferredToolCallResult | Any] = field(default_factory=lambda: dict[str, DeferredToolCallResult | Any]()) | ||
| """Map of tool call IDs to results for tool calls that required external execution.""" | ||
| approvals: dict[str, bool | DeferredToolApprovalResult] = field(default_factory=dict) | ||
| approvals: dict[str, bool | DeferredToolApprovalResult] = field(default_factory=lambda: dict[str, bool | DeferredToolApprovalResult]()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert these changes; looks like your IDE is using a newer pyright than we have in pyproject.toml
|
This PR is stale, and will be closed in 3 days if no reply is received. |
Tool.from_schema requires_approval argument
No description provided.