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 Tool Use #26

Merged
merged 16 commits into from
Sep 4, 2024
Merged

Support Tool Use #26

merged 16 commits into from
Sep 4, 2024

Conversation

fumito-ito
Copy link
Owner

@fumito-ito fumito-ito commented Sep 4, 2024

fixes #3

Supports Tool Use.

You can call Swift functions from a Claude response by taking as an argument a ToolContainer that can be used from the @FunctionCalling macro.

This change supports Tool Use in both Message / Stream APIs. It also automatically calls the function and resends the result when Tool Use is detected.

@fumito-ito fumito-ito force-pushed the feature/function-calling branch from 9b3d971 to 5b80876 Compare September 4, 2024 03:35
@fumito-ito fumito-ito changed the title Support Function Calling Support Tool Use Sep 4, 2024
@fumito-ito fumito-ito merged commit fe05333 into main Sep 4, 2024
1 check passed
@fumito-ito fumito-ito deleted the feature/function-calling branch September 4, 2024 04:46
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.

Support Function Calling
1 participant