baiam-agents-builder
Typed agent primitives and tracing for Baiam Agent. Distribution name:
baiam-agents-builder; Python import namespace: agents_builder.
This is a separate project starting at version 0.1.0, with a fresh Git history.
It retains the code needed by the current Baiam Agent checkout, plus the MCP and
Ollama features retained explicitly for future use.
Included API
Agent: configuration, cached LLM factory, lazy graph construction,load_tool()with MCP caching, andpush()to save a graph image.Prompt,Node,RouterNode, andLLMNode: primitives for Baiam's own nodes.LLM,LLMFactory,OpenRouterLLM, andOllamaLLM, with validated settings.FromConfigMixin:from_config(),from_kwargs(), andget_config_class().TraceAnnotatorandPhoenixTraceAnnotator, including Git revision labels.
The old retrieval nodes/states, deletion strategies, message/context helpers, agent/node evaluation frameworks, and unused type aliases are excluded. Baiam keeps its own evaluation runners, assertions, and trajectories.
The package uses langchain-core directly. OpenEvals belongs to Baiam's own
evaluation code and is not a runtime dependency here.
Use from Baiam Agent
In the sibling baiam-agent checkout:
uv remove agents-builder
uv add --editable ../baiam-agents-builder
uv add 'openevals>=0.2.0,<1.0.0'
make ci
Existing agents_builder imports and YAML module paths remain valid. Replace the
old distribution rather than installing both: they provide the same Python
namespace. For deployment, publish this distribution and replace the local path
with a version constraint on baiam-agents-builder.
Configuration precedence remains explicit constructor values, YAML at
/config/config.yaml, environment variables, dotenv, then secrets. Baiam also
provides its own YAML loading through load_component() and agent settings.
Development
Requires Python 3.12 and uv.
uv lock
make dev-install
make ci
Use make help to list the available development commands.
make ci checks lint and formatting, types, security, tests with at least 95%
branch-aware coverage, and both source and wheel builds. Tests cover graph
execution, MCP caching, configuration, provider construction, and tracing. They
do not contact live Ollama, OpenRouter, MCP, or Phoenix services.
CI and publishing
The GitLab pipeline uses the same Makefile targets as local development. It runs
for merge requests, the default branch, and protected tags. Set the GitLab
default branch to dev when connecting this repository. Codecov upload runs only
when CODECOV_TOKEN is configured.
Publishing is manual; CI builds artifacts without publishing a release. After confirming that the distribution name is available on PyPI and the token account can publish it, run:
read -rsp 'PyPI token: ' UV_PUBLISH_TOKEN
echo
export UV_PUBLISH_TOKEN
./scripts/publish.sh 0.1.1
unset UV_PUBLISH_TOKEN
The script updates the version in pyproject.toml and uv.lock, builds into
dist/<version>/, and publishes only that version's wheel and source distribution.
Run make ci before publishing, then commit the version files after a successful
release.
This reduced package is derived from the local agents-builder codebase. The
original project and the Baiam Agent checkout are not modified by its creation.
Metadata
Release files for baiam-agents-builder 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| baiam_agents_builder-0.1.0.tar.gz | 74.9 kB | Without provenance | Details for baiam_agents_builder-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| baiam_agents_builder-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for baiam_agents_builder-0.1.0-py3-none-any.whl |
Total release size: 87.9 kB
Release files / baiam_agents_builder-0.1.0.tar.gz
| Download URL | baiam_agents_builder-0.1.0.tar.gz |
|---|---|
| Size | 74.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b31617e496a6f3ac46c2767636da5c541396e638f37f75c2ca02220d59ba4fcb
|
|
BLAKE2b-256 checksum How to use checksums |
bb32fb0f91e76fb577f3d0a5dbc165a89b0fb32563be680a45a38cb2c0a485d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / baiam_agents_builder-0.1.0-py3-none-any.whl
| Download URL | baiam_agents_builder-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
718f1b9b8c60f7697c893d2916bc22fe88a9475b9b4589493d4f8a62319bff9a
|
|
BLAKE2b-256 checksum How to use checksums |
bce969c78ecbdae178b46f63fa68703c185cf3f50b1a7dcc09cc1b12ba3420d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for baiam-agents-builder 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.