prefactor_livekit.schemas module
prefactor_livekit.schemas module
Section titled “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.
input_schema : dict[str, Any]
Section titled “input_schema : dict[str, Any]”result_schema : dict[str, Any]
Section titled “result_schema : dict[str, Any]”span_type : str
Section titled “span_type : str”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.
prefactor_livekit.schemas.register_livekit_schemas(registry: SchemaRegistry, tool_schemas: Mapping[str, LiveKitToolSchemaConfig | Mapping[str, Any]] | None = None) → dict[str, str]
Section titled “prefactor_livekit.schemas.register_livekit_schemas(registry: SchemaRegistry, tool_schemas: Mapping[str, LiveKitToolSchemaConfig | Mapping[str, Any]] | None = None) → dict[str, str]”Register LiveKit schemas in a schema registry.