@radzor/function-calling
Structured LLM tool use (function calling) for OpenAI and Anthropic. Define typed tools, run agentic loops, and receive validated structured results. Handles multi-turn tool execution automatically.
Install
View source on GitHub →Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| provider* | 'openai' | 'anthropic' | — | LLM provider to use. |
| apiKey* | string | — | API key for the selected provider.OPENAI_API_KEY |
| model* | string | — | Model identifier (e.g. gpt-4o, claude-sonnet-4-20250514). |
| maxIterations | number | 10 | Maximum tool call iterations before stopping to prevent infinite loops. |
| systemPrompt | string | — | System prompt prepended to all conversations. |