Skip to content

prefactor_livekit.schemas module

LiveKit span schemas for Prefactor.

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

Section titled “class prefactor_livekit.schemas.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.

prefactor_livekit.schemas.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.schemas.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.