Skip to content

Conversation

Kludex
Copy link
Member

@Kludex Kludex commented Aug 14, 2025

No description provided.

@Kludex Kludex marked this pull request as draft August 14, 2025 14:58
Copy link

Docs Preview

commit: 4f0c62d
Preview URL: https://3fcecd1b-pydantic-ai-previews.pydantic.workers.dev

@DouweM
Copy link
Collaborator

DouweM commented Aug 14, 2025

This'll require the user to implement the str_replace_editor tool: https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/text-editor-tool#implement-the-text-editor-tool. We can start by raising an error if this built-in tool is used without an actual str_replace_editor tool being implemented, but it would be nice if we would provide one in the form of a toolset that takes a base path and a callback to allow/deny specific reads/writes. Then the error could recommend just adding that to Agent(toolset=...) and you'd be good to go.

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