Skip to content

Refactor web_search to reuse agent instance as function tool #53

Description

  • The web_search() method creates a new agent every time it's invoked.
  • Consider creating one instance of the agent and converting it to a function tool for reuse.

Acceptance Criteria:

  • Agent is not created repeatedly in web_search().
  • Function tool pattern is used for reuse.
  • Tests verify the new pattern works as expected.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions