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

Support for tool calls #268

Open
calvinlfer opened this issue Jan 26, 2025 · 4 comments
Open

Support for tool calls #268

calvinlfer opened this issue Jan 26, 2025 · 4 comments

Comments

@calvinlfer
Copy link

Is it possible to expose tool calls similar to what Vercel’s AI SDK exposes which allows the LLM to call the functions exposed by your application (https://sdk.vercel.ai/cookbook/next/call-tools). This would need schema input and output definitions for the function being exposed but would be extremely useful in enabling workflows.

Thank you for this great library

@adamw
Copy link
Member

adamw commented Jan 27, 2025

Does Structured Outputs/JSON Schema support cover the use-case you are describing?

@calvinlfer
Copy link
Author

calvinlfer commented Jan 27, 2025

I think this is additional to structured outputs. It's about providing the LLM the ability to call your user defined functions and feed it back the output to the LLM to enable more agentic workflows.

@adamw
Copy link
Member

adamw commented Jan 27, 2025

Ah true, might probably build upon structured outputs. Would be great to have, but sounds a bit complicated - which makes it even more attractive ;)

@calvinlfer
Copy link
Author

calvinlfer commented Jan 27, 2025

but sounds a bit complicated - which makes it even more attractive ;)

for sure! I saw the implementation that Vercel used and how they tied it into Zod and I thought - hey we have something similar via Tapir Schema 😸

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

No branches or pull requests

2 participants