## TL;DR

Pass a tools array with function definitions in the chat completions request, exactly like the OpenAI API.

## Fix

1. Pass a tools array with function definitions in the chat completions request, exactly like the OpenAI API.
   Expected: you can confirm this matches your situation.

## When to use

- You are setting up or using this Fireworks AI function calling feature.
- The symptom matches: define tools in the OpenAI-compatible request.

## When NOT to use

- Unrelated Fireworks AI function calling issues (different feature, different failure).
- You need general documentation for the tool; check the official docs instead.

## Compatibility

Reported against Fireworks AI function calling.

## Variant phrasings

### define tools in the OpenAI-compatible request

## Why it happens

Fireworks AI speaks the OpenAI chat format, so function calling works the same way.

## Edge cases

- If your error message differs even slightly, this is probably a different issue; search the exact text.
- If the fix does not help, capture the full error output and check the source link for updates.