> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pipecat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# LLM Frames

> LLM frame reference for Pipecat: context frames and the function calling helper dataclasses passed through pipelines.

This page documents LLM-specific types that don't belong on a base-type page: `LLMContextFrame` (which inherits directly from `Frame`) and the helper dataclasses used by function calling frames. All other LLM-related frames are documented on their base-type pages. See [Related Frames](#related-frames) below for links.

## LLMContextFrame

Contains a complete LLM context. Acts as a signal to LLM services to ingest the provided context and generate a response.

Inherits directly from `Frame` (not `DataFrame`, `ControlFrame`, or `SystemFrame`).

**context** `LLMContext` *required*

The LLM context containing messages, tools, and configuration.

**speculation** `bool` (default: False)

Whether this inference is speculative, run from a provisional context that is
not part of the conversation. Its response must not reach the user or the
context until the turn is confirmed, and the service must not execute tool
calls for it.

## Function Calling Helper Dataclasses

These are plain dataclasses used as fields within function calling frames, not frames themselves.

### FunctionCallFromLLM

Represents a function call returned by the LLM, ready for execution.

**function\_name** `str` *required*

The name of the function to call.

**tool\_call\_id** `str` *required*

A unique identifier for the function call.

**arguments** `Mapping[str, Any]` *required*

The arguments to pass to the function.

**context** `Any` *required*

The LLM context at the time the function call was made.

### FunctionCallResultProperties

Configures how a function call result is handled after execution.

**run\_llm** `bool | None` (default: None)

Whether to run the LLM after receiving this result. `None` runs it once every
function call from the same LLM response has returned (or after each result
when the service has `group_parallel_tools=False`). Applies only when the
result is truthy: a `None` or empty result doesn't run the LLM, even with
`True`.

**on\_context\_updated** `Callable[[], Awaitable[None]] | None` (default: None)

Async callback to execute when the context is updated with the result.

**is\_final** `bool` (default: True)

Whether this is the final result for the function call. Set to `False` to send
an intermediate update from an async function call registered with
`cancel_on_interruption=False`. On any other call, a result with `False` is
dropped with a warning.

## Related Frames

LLM-related frames organized by base type:

* **Data Frames**: [Context Management](https://docs.pipecat.ai/api-reference/server/frames/data-frames.md#llm-context-management), [Thinking](https://docs.pipecat.ai/api-reference/server/frames/data-frames.md#llm-thinking), [Tool Configuration](https://docs.pipecat.ai/api-reference/server/frames/data-frames.md#llm-tool-configuration), [Function Call Results](https://docs.pipecat.ai/api-reference/server/frames/data-frames.md#function-call-results)
* **Control Frames**: [Response Boundaries](https://docs.pipecat.ai/api-reference/server/frames/control-frames.md#llm-response-boundaries), [Context Summarization](https://docs.pipecat.ai/api-reference/server/frames/control-frames.md#llm-context-summarization), [Thought Frames](https://docs.pipecat.ai/api-reference/server/frames/control-frames.md#llm-thought-frames), [Function Calling](https://docs.pipecat.ai/api-reference/server/frames/control-frames.md#function-calling), [Service Settings](https://docs.pipecat.ai/api-reference/server/frames/control-frames.md#service-settings)
* **System Frames**: [Function Calling](https://docs.pipecat.ai/api-reference/server/frames/system-frames.md#function-calling)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.