Interface: SpanTypeSchema
Prefactor TypeScript SDK / @prefactor/core / SpanTypeSchema
Interface: SpanTypeSchema
Section titled “Interface: SpanTypeSchema”Defined in: packages/core/src/tracing/span-schema.ts:7
Schema definition for a span type, including its params/result schemas and optional risk metadata.
Properties
Section titled “Properties”name:
string
Defined in: packages/core/src/tracing/span-schema.ts:9
Unique name for this span type (e.g. langchain:llm, myapp:tool:search).
params_schema
Section titled “params_schema”params_schema:
JsonSchema
Defined in: packages/core/src/tracing/span-schema.ts:11
JSON Schema describing the span’s input params.
result_schema?
Section titled “result_schema?”
optionalresult_schema:JsonSchema
Defined in: packages/core/src/tracing/span-schema.ts:13
JSON Schema describing the span’s result payload.
template?
Section titled “template?”
optionaltemplate:string|null
Defined in: packages/core/src/tracing/span-schema.ts:15
Liquid template for rendering the span’s params as a human-readable summary.
result_template?
Section titled “result_template?”
optionalresult_template:string|null
Defined in: packages/core/src/tracing/span-schema.ts:17
Liquid template for rendering the span’s result as a human-readable summary.
description?
Section titled “description?”
optionaldescription:string
Defined in: packages/core/src/tracing/span-schema.ts:19
Human-readable description of what this span type represents.
data_risk?
Section titled “data_risk?”
optionaldata_risk:DataRisk
Defined in: packages/core/src/tracing/span-schema.ts:21
Risk metadata describing data sensitivity and permitted actions for this span type.