Skip to main content

aip_sdk.CanonicalSpan

aip_sdk.CanonicalSpan

One span in the platform's canonical vocabulary.

aip carries skill-written fields already in canonical vocabulary, as a free-form map whose contents depend on the source trace. provenance maps a canonical field name to how that field was produced, so a caller can tell a losslessly-mapped value from one recovered out of an unstructured payload.

aip_sdk.CanonicalSpan.aip​

aip_sdk.CanonicalSpan.aip: dict[str, Any] = Field(default_factory=dict)

No docstring is defined in the source.

aip_sdk.CanonicalSpan.documents​

aip_sdk.CanonicalSpan.documents: list[Document] = Field(default_factory=list[Document])

No docstring is defined in the source.

aip_sdk.CanonicalSpan.end_ns​

aip_sdk.CanonicalSpan.end_ns: int | None = None

No docstring is defined in the source.

aip_sdk.CanonicalSpan.error​

aip_sdk.CanonicalSpan.error: str | None = None

No docstring is defined in the source.

aip_sdk.CanonicalSpan.input_messages​

aip_sdk.CanonicalSpan.input_messages: list[Message] = Field(default_factory=list[Message])

No docstring is defined in the source.

aip_sdk.CanonicalSpan.input_tokens​

aip_sdk.CanonicalSpan.input_tokens: int | None = None

No docstring is defined in the source.

aip_sdk.CanonicalSpan.kind​

aip_sdk.CanonicalSpan.kind: SpanKind

No docstring is defined in the source.

aip_sdk.CanonicalSpan.model​

aip_sdk.CanonicalSpan.model: str | None = None

No docstring is defined in the source.

aip_sdk.CanonicalSpan.model_config​

aip_sdk.CanonicalSpan.model_config = ConfigDict(extra='allow')

No docstring is defined in the source.

aip_sdk.CanonicalSpan.name​

aip_sdk.CanonicalSpan.name: str

No docstring is defined in the source.

aip_sdk.CanonicalSpan.output_messages​

aip_sdk.CanonicalSpan.output_messages: list[Message] = Field(default_factory=list[Message])

No docstring is defined in the source.

aip_sdk.CanonicalSpan.output_tokens​

aip_sdk.CanonicalSpan.output_tokens: int | None = None

No docstring is defined in the source.

aip_sdk.CanonicalSpan.parent_id​

aip_sdk.CanonicalSpan.parent_id: str | None = None

No docstring is defined in the source.

aip_sdk.CanonicalSpan.provenance​

aip_sdk.CanonicalSpan.provenance: dict[str, Provenance] = Field(default_factory=dict[str, Provenance])

No docstring is defined in the source.

aip_sdk.CanonicalSpan.session_id​

aip_sdk.CanonicalSpan.session_id: str | None = None

No docstring is defined in the source.

aip_sdk.CanonicalSpan.span_id​

aip_sdk.CanonicalSpan.span_id: str

No docstring is defined in the source.

aip_sdk.CanonicalSpan.start_ns​

aip_sdk.CanonicalSpan.start_ns: int | None = None

No docstring is defined in the source.

aip_sdk.CanonicalSpan.status​

aip_sdk.CanonicalSpan.status: SpanStatus = SpanStatus.UNSET

No docstring is defined in the source.

aip_sdk.CanonicalSpan.step_index​

aip_sdk.CanonicalSpan.step_index: int | None = None

No docstring is defined in the source.

aip_sdk.CanonicalSpan.tool_calls​

aip_sdk.CanonicalSpan.tool_calls: list[ToolCall] = Field(default_factory=list[ToolCall])

No docstring is defined in the source.

aip_sdk.CanonicalSpan.trace_id​

aip_sdk.CanonicalSpan.trace_id: str

No docstring is defined in the source.