agent-squad icon indicating copy to clipboard operation
agent-squad copied to clipboard

add exports of AgentTool, AgentTools in index.ts

Open PPraneesh opened this issue 11 months ago • 0 comments

Issue Link #311

Fixes #311

Summary

Changes

This PR adds missing exports for AgentTool and AgentTools from the TypeScript SDK. While the documentation describes how to use AgentTool for adding custom tools to a SupervisorAgent, the package's index.ts file does not export AgentTool, making it inaccessible to users importing from the SDK directly.

This change ensures that developers can now follow the documented examples without encountering missing export errors.

User experience

Before: Users trying to use AgentTool (as per the documentation) would encounter errors due to it not being exported from the SDK.

After: AgentTool is now correctly exported, allowing users to implement custom tools in their multi-agent workflows as shown in the documentation.

Checklist

If your change doesn't seem to apply, please leave them unchecked.

  • [x] I have performed a self-review of this change
  • [x] Changes have been tested
  • [x] Changes are documented
  • [x] I have linked this PR to an existing issue (required)
Is this a breaking change?

RFC issue number:

Checklist:

  • [ ] Migration process documented
  • [ ] Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

PPraneesh avatar May 04 '25 04:05 PPraneesh