---
title: prefactor_livekit.schemas module
editUrl: true
head: []
template: doc
sidebar:
  hidden: false
  attrs: {}
pagefind: true
draft: false
---

# 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] = <factory>)

Bases: `object`

Configuration for a tool-specific LiveKit span schema.

#### input_schema *: dict[str, Any]*

#### result_schema *: dict[str, Any]*

#### span_type *: str*

### prefactor_livekit.schemas.compile_livekit_agent_schema(tool_schemas: Mapping[str, [LiveKitToolSchemaConfig](#prefactor_livekit.schemas.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](../../core/reference/prefactor_core.schema_registry.md#prefactor_core.schema_registry.SchemaRegistry), tool_schemas: Mapping[str, [LiveKitToolSchemaConfig](#prefactor_livekit.schemas.LiveKitToolSchemaConfig) | Mapping[str, Any]] | None = None) → dict[str, str]

Register LiveKit schemas in a schema registry.