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

allow adding tools via Agent __init__ #128

Merged
merged 8 commits into from
Dec 4, 2024
Merged

allow adding tools via Agent __init__ #128

merged 8 commits into from
Dec 4, 2024

Conversation

samuelcolvin
Copy link
Member

@samuelcolvin samuelcolvin commented Dec 3, 2024

Fix #121.

Also @intellectronica mentioned they would like to be able to add tools when defining the agent.

This is also a step towards #110.

Needs:

  • more docs
  • more tests

Copy link

cloudflare-workers-and-pages bot commented Dec 3, 2024

Deploying pydantic-ai with  Cloudflare Pages  Cloudflare Pages

Latest commit: 951dea2
Status: ✅  Deploy successful!
Preview URL: https://cdab8126.pydantic-ai.pages.dev
Branch Preview URL: https://tool-argument.pydantic-ai.pages.dev

View logs

Copy link
Contributor

@hyperlint-ai hyperlint-ai bot left a comment

Choose a reason for hiding this comment

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

The style guide flagged several spelling errors that seemed like false positives. We skipped posting inline suggestions for the following words:

  • [Vv]alidator

Copy link
Contributor

@hyperlint-ai hyperlint-ai bot left a comment

Choose a reason for hiding this comment

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

5 files reviewed, 1 total issue(s) found.

docs/agents.md Outdated Show resolved Hide resolved
Copy link
Contributor

@hyperlint-ai hyperlint-ai bot left a comment

Choose a reason for hiding this comment

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

The style guide flagged several spelling errors that seemed like false positives. We skipped posting inline suggestions for the following words:

  • [Kk]warg

@samuelcolvin samuelcolvin enabled auto-merge (squash) December 4, 2024 10:30
@samuelcolvin samuelcolvin merged commit 3f0234f into main Dec 4, 2024
14 checks passed
@samuelcolvin samuelcolvin deleted the tool-argument branch December 4, 2024 10:30
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.

Support StructuredTool
1 participant