Skip to main content
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 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.

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
Optional[bool]
default:"None"
Whether to run the LLM after receiving this result.
on_context_updated
Optional[Callable[[], Awaitable[None]]]
default:"None"
Async callback to execute when the context is updated with the result.
LLM-related frames organized by base type: