Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.bitfab.ai/llms.txt

Use this file to discover all available pages before exploring further.

This section is a pure reference — exhaustive signatures, parameters, return values, and semantics for every public API across every Bitfab SDK. No narrative, no “how to use”, no walkthroughs. For tutorials and getting started, see the individual SDK guides: TypeScript, Python, Ruby, Go.

Pages

Framework Integrations

Per-framework signatures (handlers, processors, wrappers) are documented in the Frameworks section. Language-specific signatures are mirrored in each SDK reference’s Framework Integrations subsection.

Invariants Across SDKs

Behavior that is guaranteed to match across all SDKs:
InvariantBehavior
Empty / missing API keyTracing disabled, warning logged, wrapped functions still execute, no spans sent, no errors thrown
enabled: falseSame as above — wrapped functions pass through unwrapped
Span dispatchFire-and-forget. Errors in span transport never propagate to host code
Nested spansChild spans inherit traceId; parent-child relationships tracked via context
Trace IDUUID v4. Generated at root span, inherited by descendants
Span IDUUID v4. Unique per span
Root spanThe outermost span in a call tree. Emits trace completion signal when it ends
Errors in user codeCaptured on the span (error field) then re-raised/re-thrown
Default serviceUrlhttps://bitfab.ai
Default span type"custom"
addContextEach call appends one entry. Multiple calls accumulate
setPromptLast write wins. Calling outside a span is a no-op
setSessionIdStored as a DB column on the trace. Filterable in dashboard
setMetadataMerges with existing metadata. Later values win per-key

Common Span Types

Every SDK accepts the same enum for span type:
"llm" | "agent" | "function" | "guardrail" | "handoff" | "custom"
See Span Types for full semantics.