Tool Calling Roundtrip
A 2-step recipe with Hyperbolic. We can help you get access.
Recipe · 2 steps
Tool Calling Roundtrip
with Hyperbolic
Request a tool call, then return the tool result for a final answer.
- Send the question with a single function tool available and let the model decide whether to call it, capturing any returned tool call.
- Return the tool result back to the model as a tool message so it can produce the final natural-language answer.
What you'll need to have ready
- apiKey: Hyperbolic API key passed as a Bearer token.
- model: Chat model id that supports tool calling.
- question: The user question that may require the tool.
- toolName: Name of the single function tool offered to the model.
- toolDescription: Human description of what the tool does.
- toolResult: The caller-computed result string returned to the model.
For your developer
Arazzo workflow hyperbolic-ai:tool-calling-roundtrip, 2 operations: {$sourceDescriptions.chatCompletionsApi.url}#/paths/~1chat~1completions/post → {$sourceDescriptions.chatCompletionsApi.url}#/paths/~1chat~1completions/post. Specs on APIs.io.