Release notes forDocumentation Index
Fetch the complete documentation index at: https://docs.bentolabs.ai/llms.txt
Use this file to discover all available pages before exploring further.
bentolabs-sdk. Versions follow SemVer.
Added
bentolabs_sdk.analyticsmodule withinit,track_ai,begin,flush, andshutdown. You no longer need to set up an OTel tracer yourself.bento.begin(...)for trajectories (multi-step interaction spans). Works as a context manager or imperatively witht.finish(). Out-of-orderfinish()calls raiseRuntimeError.@bento.interactionand@bento.tooldecorators. Both work on sync and async functions.@bento.toolrecords bound arguments asinput.valueand the return value asoutput.valueautomatically.bento.tool_span(...)for standalone tool spans, andinteraction.tool_span(...)for tool spans inside an open trajectory. Both setopeninference.span.kind="tool".
Improved
- Property types are preserved on the wire.
int,float,bool,str, and homogeneous lists keep their type. Dicts and mixed lists fall back to JSON strings.
Changed
track_aiandbeginnow detach from the caller’s active OTel context. BentoLabs spans will not get attached to FastAPI, Django, or other framework traces.
Initial release.
Added
BentoLabsSpanProcessor: OTelSpanProcessorthat ships spans to BentoLabs.BentoLabsTraceExporter: OTelSpanExporterfor batch or custom processor setups.resolve_options: resolves API key and base URL from constructor args, env vars (BENTOLABS_API_KEY,BENTOLABS_BASE_URL), or defaults.BentoAuthErrorwith acodefield. Codes:missing_api_key,invalid_api_key_format,already_initialized.