Skip to content

Support tools with generics args#258

Open
brianantonelli wants to merge 1 commit into
2FastLabs:mainfrom
brianantonelli:tool-param-generic-support
Open

Support tools with generics args#258
brianantonelli wants to merge 1 commit into
2FastLabs:mainfrom
brianantonelli:tool-param-generic-support

Conversation

@brianantonelli
Copy link
Copy Markdown

Issue number:

Summary

Changes

Adds support for generating tool input schema for functions that use generics (ex list[str] instead of list).

User experience

Tools like def tool(inputs: list[str]) now work, previously these inputs were defined as strings.

Checklist

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

  • I have performed a self-review of this change
  • Changes have been tested
  • Changes are documented
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.

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.

1 participant