Agentic Systems
Agentic Systems is a Python toolkit for building agentic applications that combine deterministic operations and language-model agents in explicit, inspectable workflows. Compose capabilities with LangGraph, define contracts with Pydantic, and preserve results, errors, usage and lineage in a shared format—even when agents use different providers and frameworks.
Start with a Python function. Turn it into a Tool, give an Agent a capability, and compose Agents into a System. Add Context, Memory, episodic execution and evaluation as the application grows.
Release 2.1.6 uses one public grammar. Install the SDK with
pip install agentic-systems==2.1.6; see installation for optional
framework/provider extras and Studio. Historical live evidence retains its original
artifact identity. This maintenance release uses fresh offline and mutation checks;
see the 2.1.6 release notes.
Get your first result
import agentic_systems as toolkit
@toolkit.tool
def increment(value: int) -> dict:
return {"value": value + 1}
result = increment.run({"value": 3})
assert result.ok and result.data == {"value": 4}
print(result.data)
This runs deterministic Python without a model account. Continue with the first-run guide or generate an offline project. The worked payment example below introduces the remaining concepts.
Build from the bottom up
1. Runtime: choose how a capability executes
import pydantic
import agentic_systems as toolkit
execution = toolkit.runtime(provider="python-runtime")
A model-backed runtime also specifies a model and execution controls:
model_execution = toolkit.runtime(
provider="openai-runtime",
model="gpt-4.1-mini",
timeout_s=60,
max_retries=0,
max_turns=3,
max_tool_calls=1,
)
Keep credentials outside application code.
| Concept | Responsibility |
|---|---|
| Provider | Implements access to Python, OpenAI, Bedrock, Ollama or vLLM. |
| Runtime | Configures that access, its connection and execution controls. |
| Scheduler | Applies scheduling controls, timeouts and retries through runtime configuration. No separate public Scheduler constructor is needed. |
run(..., timeout_s=60) establishes a shared root deadline. A timeout does not
guarantee that a running thread stops or that external effects are rolled back.
Execution controls and precedence.
2. Tool: implement a concrete operation
Keep arithmetic, validation and business rules in functions you can test. This Tool calculates a one-percent fee using integer cents:
@toolkit.tool
def calculate_fee(amount: int) -> dict:
"""Calculate a fee using integer cents."""
return {"amount": amount, "fee": amount // 100}
Input: amount=5000 → Process: calculate 1% → Output: amount=5000, fee=50
@toolkit.tool gives the function a discoverable contract and recorded execution.
Tools can also declare Pydantic input and output models.
3. Skill: group capabilities and instructions
fees = toolkit.skill(
name="fees",
tools=(calculate_fee,),
instructions="Calculate fees in integer cents.",
)
A Skill declares capabilities and how to use them. The graph defines execution order.
4. Agent: organize a capability
An actor-backed Agent executes through a runtime. Start with Python:
fee_operator = toolkit.Agent(
"fee_operator",
runtime=execution,
skills=(fees,),
)
result = fee_operator.run({
"tool": "calculate_fee",
"input": {"amount": 5000},
})
assert result.ok and result.data == {"amount": 5000, "fee": 50}
print(result.human_results())
An Agent can also organize steps through its own graph:
class Payment(pydantic.BaseModel):
amount: int = pydantic.Field(gt=0)
fee: int | None = None
fee_graph = toolkit.Graph(Payment)
fee_graph.add_node("calculate_fee", calculate_fee)
fee_graph.add_edge(toolkit.START, "calculate_fee")
fee_graph.add_edge("calculate_fee", toolkit.END)
fee_agent = toolkit.Agent("fees", graph=fee_graph)
An Agent accepts runtime or graph, not both. A graph-backed Agent can contain actor-backed Agents as nodes, so deterministic steps and model calls compose.
5. Framework: choose the actor implementation
fee_reasoner = toolkit.Agent(
"fee_reasoner",
runtime=model_execution,
framework=toolkit.framework("openai-agents"),
skills=(fees,),
instructions="Use calculate_fee for arithmetic; preserve its result.",
)
Defining this Agent does not call a model.
| Actor | Implementation |
|---|---|
native |
Agentic Systems' own execution loop. |
openai-agents |
OpenAI Agents SDK integration, including supported handoff configuration. |
strands |
AWS Strands integration. |
LangGraph orchestrates. Frameworks implement actors. Providers supply execution.
native is not another name for LangGraph. A System can combine actors from
different frameworks and providers.
6. System: coordinate the application
An Agent organizes a capability; a System coordinates application work:
Payment → calculate fee → review evidence → approve or request review
Start with one Agent, then add nodes and decisions:
memory = toolkit.Memory(capacity=2)
system_graph = toolkit.Graph(Payment)
system_graph.add_node("fees", fee_agent)
system_graph.add_edge(toolkit.START, "fees")
system_graph.add_edge("fees", toolkit.END)
system = toolkit.System("payments", graph=system_graph, memory=memory)
Use add_conditional_edges with ordinary Python functions for decisions;
use branches and barriers for parallel work. toolkit.Graph exposes LangGraph's
original StateGraph. START, END, Command and Send are original LangGraph objects too.
There is one graph builder and orchestration engine.
7. Context, Memory and lineage: give information a clear role
| Piece | Purpose |
|---|---|
| Pydantic state | Business data flowing through the graph. |
| Context | Domain information, sources and execution observations available to a capability. |
| Memory | Bounded episodes retained between executions within the process. |
| Lineage | Evidence of actual work and the relationships between executions. |
Tools and graph functions can request Context explicitly:
@toolkit.tool
def calculate_policy_fee(amount: int, *, context: toolkit.Context) -> dict:
return {"fee": amount * context.data["fee_bps"] // 10000}
policy_graph = toolkit.Graph(Payment)
policy_graph.add_node("fee", calculate_policy_fee)
policy_graph.add_edge(toolkit.START, "fee")
policy_graph.add_edge("fee", toolkit.END)
policy_agent = toolkit.Agent(
"policy_fees",
graph=policy_graph,
context=toolkit.Context({"fee_bps": 100}, sources=("payment-policy-v1",)),
)
Lineage can inform another Agent without copying the full trace into state. Memory lets later executions consult earlier episodes. Neither implies durable storage or recovery after restarting the process.
8. Environment: run episodes and track evolution
Record → observation → System → result → state update → next episode or stop
episode_graph = toolkit.Graph(Payment)
episode_graph.add_node("payments", system)
episode_graph.add_edge(toolkit.START, "payments")
episode_graph.add_edge("payments", toolkit.END)
def update(state, record, result):
return {"processed": state["processed"] + 1}
environment = toolkit.Environment(
"payment_episodes",
graph=episode_graph,
records=({"amount": 5000}, {"amount": 15000}),
state={"processed": 0},
update=update,
max_steps=2,
)
Environment supports records, observation, updates and stopping conditions.
Calculate rewards explicitly in update/state/history when needed. It does not
provide an implicit reward= API, training loop or complete reinforcement-learning API.
9. Eval: check behavior explicitly
def check_fee(result, case):
return {"ok": result.ok and result.data["fee"] == case["input"]["amount"] // 100}
evaluation = toolkit.Eval(
"fee_acceptance",
unit=system,
cases=({"input": {"amount": 5000}, "expected": {"ok": True}},),
checks=(check_fee,),
)
Eval targets an Agent, System or Environment. Each case receives an isolated view of toolkit Memory, starting from its initial snapshot. This does not isolate files, external services or sessions owned by other SDKs.
10. Compile, execute and inspect
program = system.compile() # Prepare and validate; no business execution or inference.
result = program.run({"amount": 5000})
assert result.ok
print(result.data)
print(result.human_results())
evidence = result.to_dict()
lineage = result.lineage()
| Operation | Meaning |
|---|---|
compile() |
Prepare execution and check structure. |
run() |
Execute synchronously. |
arun() |
Execute through the asynchronous API. |
human_results() |
Present input, observed steps, output and errors without inference. |
lineage() |
Inspect execution relationships and evidence. |
RunResult records data, errors, usage, Tool events and child executions.
result.lineage().to_prompt_context() provides a compact projection for agents;
result.trace("full") provides detailed inspection.
ok=True means the declared checks passed. It is not a universal guarantee
that every model statement is true.
See the pieces working together
Open the executed financial notebook. It combines OpenAI/native, Bedrock/Strands, Ollama local/native and Ollama cloud/OpenAI Agents in one System, with Tools, Skills, Context, Memory, Environment, reward calculation and Eval. Python and mixed-provider runs produce the same business results. It transfers no funds.
The validation report contains RunResults, human_results, lineage, artifact hashes and recorded consumption. The reference development wheel passed 544 offline tests and this focused online campaign. The 2.1.4 release used approved executable-payload equivalence to that development wheel. Version 2.1.5 includes reviewed runtime simplifications and fresh offline/mutation checks; the historical financial example above retains its original artifact identity. The subsequent 2.1.5 integration campaign is reported below.
Agentic Systems 2.1.5 integration validation
On 2026-11-08, the operator executed the following bounded campaigns. Returned artifacts were reviewed for Bedrock IAM and both vLLM environments; the ADA row is based on the operator's shared result log.
| Environment | Model | Campaign result | Evidence |
|---|---|---|---|
| Bedrock IAM, SageMaker, us-east-2 | qwen.qwen3-32b-v1:0 |
12/12 PASS | Result records and installed-version report reviewed |
| Bedrock IAM in ADA | Model/region not recorded in the shared log | 12/12 PASS | Operator-reported; version and artifact identity not independently reconciled |
| vLLM, Colab L4 | Unsloth Qwen3-4B Instruct-2507 and Thinking-2507 | 22/22 PASS | Full result archive reviewed |
| vLLM, SageMaker L4 | Same two pinned model revisions | 22/22 PASS | Full result archive reviewed |
The suites cover offline contracts, composition, flows and controls, plus live
text and actual Tool execution with native, openai-agents and strands.
Each Tool case must execute add(19, 23), return 42, and satisfy result
invariants. Bedrock also checks IAM identity resolution. Repeated offline groups
are not additional independent feature coverage.
The passing vLLM configuration uses Python 3.12, vLLM 0.11.0, Transformers 4.57.1,
FP16, an 8192-token context and a 4096-token output allowance. Required-tool cases
use policy={"tool_choice": "required"} and
completion="when_required_tools_satisfied", with instructions that do not
reveal the answer. An earlier Thinking/Strands automatic-choice attempt returned
the correct number without calling the required Tool and correctly failed.
The SDK wheel was unchanged; both prompt and policy changed in the passing setup.
These results validate the listed cases and configurations, not all models, all SDK features, long-running multi-agent applications, or the separate historical 2.1.2 semantic suite. Configuration, evidence hashes and limitations.
A subsequent SageMaker learning check passed all 33 notebooks in fresh Jupyter kernels (237 offline code cells), plus real local MCP/A2A services through deterministic Strands fixtures, with zero inference. Twelve existing live/local-service cells were skipped. The linked report records this scope and the reviewed archive.
Learn, scaffold and explore
- Install the matching SDK and Studio.
- Tutorials: core, providers, frameworks and API.
- Examples and their validation status.
- Full API walkthrough.
- Lineage and Memory that change decisions.
- API contracts and signatures.
- Studio and the Codex/ChatGPT skill.
agentic-systems new my_project scaffolds an application using the same grammar.
Studio and the skill are separate deliverables from the SDK wheel.
AWS sessions and optional ADA integration
toolkit.runtime(provider="bedrock-runtime", model=..., session=supplied_session)
borrows a session prepared by your platform and explicitly selects IAM.
Conflicting API-key, endpoint or region settings are rejected. The session stays
outside serialized state, Context, Memory and evidence, and the toolkit does not
close it. Toolkit invocations sharing it are serialized; external use remains
the owner's responsibility. The resource cannot be moved across processes.
Session example ·
Independent ADA package.
The optional diagnostic package is not included in all; its offline diagnostics
do not resolve credentials or certify real AWS/ADA access.
Validation boundaries and known limitations
Bedrock/Qwen has reproducibly omitted an obligatory amount key when its value
was null, despite a strict schema. The received Tool arguments already lack
the key before local validation. Agentic Systems rejects them; it does not insert
defaults or invent values. This is a known integration limitation, not a PASS
for that scenario. Reproduction and evidence.
The scoped 2.1.5 integration campaign above completed on vLLM GPU and Bedrock IAM; ADA results are identified separately as operator-reported. Configuration support, offline tests and live validation are reported separately. SDK integrations do not promise universal feature parity. Memory and pause/resume remain local to the process; durable recovery is not implemented.
Current status · Known issues.
For notebook reading views that do not depend on GitHub’s notebook renderer, see the English notebook index.
Metadata
Release files for agentic-systems 2.1.6
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 |
|---|---|---|---|---|
| agentic_systems-2.1.6.tar.gz | 277.8 kB | With provenance | Details for agentic_systems-2.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentic_systems-2.1.6-py3-none-any.whl | Python 3 | none | any | Details for agentic_systems-2.1.6-py3-none-any.whl |
Total release size: 589.9 kB
Release files / agentic_systems-2.1.6.tar.gz
| Download URL | agentic_systems-2.1.6.tar.gz |
|---|---|
| Size | 277.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58f994a9430b4ac19e5e0784e75df46db841054485422abcb9d99008301da074
|
|
BLAKE2b-256 checksum How to use checksums |
c338807bc4773325b9e31bbd811f9efd654470eaeaa3c963336bb6589942a1b4
|
| 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 Nov 9, 2026.
Transparency logRelease files / agentic_systems-2.1.6-py3-none-any.whl
| Download URL | agentic_systems-2.1.6-py3-none-any.whl |
|---|---|
| Size | 312.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
198f4bc6ca6e2776328199be49f287922d39924be16e849353ec298b7f5c22e3
|
|
BLAKE2b-256 checksum How to use checksums |
1e88c274645529229a8d3e76b4640ecbd5808a02877bbadb1435bc8408d3942a
|
| 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 Nov 9, 2026.
Transparency logSecurity for agentic-systems 2.1.6
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
Both files in this release have been uploaded with provenance metadata.
Attestation for agentic_systems-2.1.6.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 Nov 9, 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.