fipsagents
Production-ready AI agent framework for FIPS/Red Hat AI environments. Provides BaseAgent — a pure Python, async-first base class that handles LLM communication, tool dispatch, MCP connections, prompt loading, skill management, configuration, and lifecycle so your agent subclass stays small.
Install
pip install fipsagents[server]
With optional MemoryHub support:
pip install fipsagents[server,memory]
With Prometheus metrics endpoint:
pip install fipsagents[server,metrics]
With OpenTelemetry trace export:
pip install fipsagents[server,otel]
Or vendor the source directly into your project for full control:
fips-agents vendor
See VENDORED marker in src/fipsagents/ for provenance tracking.
Quick start
from fipsagents.baseagent import BaseAgent, StepResult
class MyAgent(BaseAgent):
async def step(self) -> StepResult:
response = await self.call_model()
response = await self.run_tool_calls(response)
return StepResult.done(response.content)
if __name__ == "__main__":
from fipsagents.server import OpenAIChatServer
server = OpenAIChatServer(agent_class=MyAgent, config_path="agent.yaml")
server.run()
What's included
- LLM client via the openai async SDK — connects to any OpenAI-compatible endpoint (vLLM, LlamaStack, llm-d)
- Two-plane tool system —
@tooldecorator withagent_only,llm_only, orbothvisibility - MCP client via FastMCP v3 — connect to remote servers (tools, prompts, and resources)
- Prompt loading — Markdown with YAML frontmatter
- Skills — agentskills.io progressive disclosure
- Configuration — YAML with
${VAR:-default}env var substitution - Pluggable memory — memoryhub, markdown, sqlite, pgvector, llamastack, custom, or null. Budget presets (
small/medium/large) auto-tune for model context size. Deferred loading, user-turn injection for small models, and per-turn recall patterns - Protective patterns — max iterations, exponential backoff, rate limiting
- HTTP server — OpenAI-compatible
/v1/chat/completionsendpoint with streaming, extended sampling parameters (top_p, top_k, repetition_penalty, reasoning_effort), and multimodal content blocks (text +image_url). Image bytes can be referenced inline asdata:URIs, by URL, or by the internalfile_id:<id>scheme — uploads viaPOST /v1/filesare resolved server-side from the configuredBytesStorebefore the model call - File uploads —
POST /v1/filesaccepts multipart uploads, persists each file via the configuredFileStore, and exposes them either as extracted-text context (passfile_ids: [...]on a chat completion) or as image bytes (referencefile_id:<id>from animage_urlcontent block). Opt-in via the[files]extra run_tool_calls()— one-line tool dispatch loop for non-streaming agents- Agent identity — name, description, version exposed via
/v1/agent-info
Key methods
| Method | Purpose |
|---|---|
call_model() |
LLM completion with auto-included tool schemas |
run_tool_calls(response) |
Execute tool calls and loop until the model stops |
call_model_json(schema) |
Structured output with Pydantic validation |
call_model_validated(fn) |
Call, validate, retry with backoff |
use_tool(name, **kw) |
Agent-code tool call (plane 1) |
connect_mcp(target) |
Connect to an MCP server |
get_mcp_prompt(name) |
Render an MCP-provided prompt |
read_resource(uri) |
Read an MCP-provided resource |
Used by
This package is the shared framework for templates scaffolded by the fips-agents CLI:
- agent-loop — single-agent loop (
step()in a loop) - workflow — directed graph of nodes with typed state
License
Apache 2.0
Metadata
Release files for fipsagents 0.32.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 |
|---|---|---|---|---|
| fipsagents-0.32.0.tar.gz | 462.3 kB | With provenance | Details for fipsagents-0.32.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fipsagents-0.32.0-py3-none-any.whl | Python 3 | none | any | Details for fipsagents-0.32.0-py3-none-any.whl |
Total release size: 762.7 kB
Release files / fipsagents-0.32.0.tar.gz
| Download URL | fipsagents-0.32.0.tar.gz |
|---|---|
| Size | 462.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76261be870eaedd85ec6c70b03c732100b9073357f9067bcf45eeb93d7b84e62
|
|
BLAKE2b-256 checksum How to use checksums |
f3b16a56a04aa71dbad9bfe1a3f9746f8a0f28a36b5e51f04cc2805392c6c867
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.
Transparency logRelease files / fipsagents-0.32.0-py3-none-any.whl
| Download URL | fipsagents-0.32.0-py3-none-any.whl |
|---|---|
| Size | 300.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0f910753adf6a83f912e60d0a9994afb8f46b7fbda3903af244e959bb6efd5e
|
|
BLAKE2b-256 checksum How to use checksums |
344bf81b13950a9abab444282a48465a30046cf0d0fe76024881cf37aa2e6432
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.
Transparency logSecurity for fipsagents 0.32.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for fipsagents-0.32.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.
Transparency logA 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.