Ironclad / rivet

The open-source visual AI programming environment and TypeScript library
https://rivet.ironcladapp.com
MIT License
2.55k stars 226 forks source link

Claude 3 support for tool API #384

Closed gogwilt closed 2 months ago

gogwilt commented 2 months ago

Adds support for Claude 3 tool usage.

Screenshot 2024-04-05 at 12 54 26 PM

Also adds a few inputs and outputs, to allow the Anthropic Chat Node to more easily act as a drop-in replacement for the OpenAI Chat Node. Specifically, adds the all-messages output, which makes it easier to do tool usage across calls.

The screenshot below shows how both Chat Nodes can be used in the same way with tool/function usage.

Screenshot 2024-04-05 at 1 14 44 PM