Observability logger for Blend360 internal agent workflows.
Project description
Blend Agents Observability
Enterprise-grade observability library for instrumenting multi-step AI agent systems. Capture, process, and visualize complex agent execution graphs with ease.
Note: This package is owned by Blend360 and is intended for internal usage only.
Features
- Manual Instrumentation: Explicit control over trace creation and node lifecycle for precise observability.
- AWS Kinesis Integration: Stream observability events directly to AWS Kinesis Data Streams.
- Type-Safe Events: Leverages Pydantic for robust event validation, ensuring data integrity.
- Resilient by Design: Gracefully handles errors and fails silently, preventing observability from impacting your application's stability.
- Detailed Agent Tracking: Capture fine-grained details of agent execution, including reasoning steps and tool usage.
- Parallel Workflow Support: Built-in support for tracing parallel execution branches and sub-traces.
Installation
pip install blend-agents-observability
Quick Start
Here's a simple example of how to get started with the AgentLogger:
from observability_logger import AgentLogger, generate_id
# 1. Initialize the logger for a new trace
logger = AgentLogger(
trace_id=generate_id("trace_"),
workflow_id="data_processing_v1",
title="Data Processing Workflow"
)
# 2. Create a node to represent a step in your workflow
# This node is auto-completed upon creation.
validation_node = logger.miscellaneous(
node_id=generate_id("node_"),
config={"name": "Input Validation", "description": "Validate incoming data"},
content="Validated 5 fields successfully",
metadata={"fields_validated": 5}
)
# 3. Create another node
processing_node = logger.miscellaneous(
node_id=generate_id("node_"),
config={"name": "Data Transformation"},
content="Transformed data to target schema"
)
# 4. Connect the nodes with an edge to show the flow
logger.edge(validation_node, processing_node)
# 5. End the trace when the workflow is complete
logger.end(status="completed")
This will generate a trace with two connected nodes and emit the corresponding events to your configured Kinesis stream.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blend_agents_observability-1.0.0.tar.gz.
File metadata
- Download URL: blend_agents_observability-1.0.0.tar.gz
- Upload date:
- Size: 47.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac31bd424e0c7e7a6225dce45f41fe4fcc326c48efe571e9bec046aafd9fbc13
|
|
| MD5 |
bdd89f9f4ab038abd0be0dcd18e7c4ab
|
|
| BLAKE2b-256 |
fcf5ec6b965bef0ca9c6eb209f6aef80d7bf09e37eabb50399d0712d6afe7b52
|
File details
Details for the file blend_agents_observability-1.0.0-py3-none-any.whl.
File metadata
- Download URL: blend_agents_observability-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e190a606defd11686e69ddd6a9f41dff5fdbfc385177f626c0eed38916d40f6f
|
|
| MD5 |
cf6a8283d636cc038802c2b4fe8b6c01
|
|
| BLAKE2b-256 |
ce40580dd12f3a823e1946c35f9b8689aa5d74b28463b86ceb009fd24f1c1dfc
|