Skip to content

Refactor web_search to reuse agent instance as function tool #53

@thegovind

Description

@thegovind
  • 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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions