Skip to content

prefactor_livekit package

Prefactor LiveKit integration package.

class prefactor_livekit.LiveKitToolSchemaConfig(span_type: str, input_schema: dict[str, ~typing.Any], result_schema: dict[str, ~typing.Any] = )

Section titled “class prefactor_livekit.LiveKitToolSchemaConfig(span_type: str, input_schema: dict[str, ~typing.Any], result_schema: dict[str, ~typing.Any] = )”

Bases: object

Configuration for a tool-specific LiveKit span schema.

Bases: object

High-level LiveKit session wrapper for Prefactor tracing.

Attach to an existing LiveKit session.

Flush pending tasks and release wrapper-owned resources.

Initialize and return the active Prefactor instance.

Create a wrapper from raw configuration.

async start(session: AgentSession[Any], agent: Agent, **kwargs: Any) → Any

Section titled “async start(session: AgentSession[Any], agent: Agent, **kwargs: Any) → Any”

Attach and delegate to AgentSession.start().

prefactor_livekit.compile_livekit_agent_schema(tool_schemas: Mapping[str, LiveKitToolSchemaConfig | Mapping[str, Any]] | None = None) → tuple[dict[str, Any], dict[str, str]]

Section titled “prefactor_livekit.compile_livekit_agent_schema(tool_schemas: Mapping[str, LiveKitToolSchemaConfig | Mapping[str, Any]] | None = None) → tuple[dict[str, Any], dict[str, str]]”

Compile built-in and tool-specific LiveKit schemas.

Register LiveKit schemas in a schema registry.