PRAXO-CORE (also written praxocore) is an embeddable, MIT-licensed agent framework. PRAXO-CORE is a dependency-free Python framework for building tool-using AI agents. It provides the agent runtime, not a model or hosted service, so you keep control of your models, tools, storage, and sandboxing.
| Field | Value |
|---|---|
| Package | praxo-core |
| Registry | PyPI |
| Install | pip install praxo-core==0.12.0 |
| Source version | 0.13.0 |
| Published version | 0.12.0 |
| Publication status | published 0.12.0; source tag python/v0.13.0 |
| Canonical source tag | python/v0.13.0 |
| Tier | Core |
| Contract | SPEC_VERSION 0.2.0 |
| Documentation | https://axisvela.github.io/praxo-core/languages/python/ |
| License | MIT |
- Async-first models, tools, events, and sessions.
- Policy hooks, approvals, path checks, PII redaction, and call limits.
- Context budgets, checkpoints, middleware, and fallback models.
- Streaming, cancellation, and OpenAI-compatible, Anthropic, and Gemini adapters.
- No runtime dependencies; Python 3.11 or newer.
Install the published package:
pip install praxo-core==0.12.0import asyncio
from praxo.agent import Agent, AgentOptions, Session
from praxo.event import Event
from praxo.model import Message, Response, Usage
from praxo.tool import FuncTool, Registry
class EchoModel:
async def generate(self, request):
return Response(message=Message(role="assistant", content="hello"))
class LogSink:
async def emit(self, event: Event) -> None:
print(event.to_wire())
async def main() -> None:
tools = Registry()
tools.register(FuncTool("echo", "Echo input", lambda args: args))
agent = Agent(
AgentOptions(model=EchoModel(), tools=tools, events=LogSink())
)
result = await agent.run(Session(id="session-1"), "hi")
print(result.output, result.steps, result.usage)
asyncio.run(main())See the full Python README for complete installation, build, and verification commands.
| Capability | Status | Detail |
|---|---|---|
| OpenAI-compatible model | native | praxo.adapters.openaicompat |
| Anthropic model | native | praxo.adapters.anthropic.AnthropicModel; SSE streaming reassembly |
| Gemini model | native | praxo.adapters.gemini.GeminiModel; SSE streaming |
| MCP client | native | praxo.adapters.mcp.MCPClient; stdio, plus mcp_http.StreamableHTTPTransport for Streamable HTTP 2025-03-26 |
| Harmovela sink | native | praxo.adapters.harmovela.HarmovelaSink |
| OpenTelemetry sink | native (transport seam) | praxo.adapters.otel.OtelSink; caller supplies OTLP/HTTP transport |
| Subagent delegation | native | praxo.delegation.SubagentManager |
| Retriever | native | praxo.retriever.Document and Retriever |
Runnable examples live under language/python/examples.
| Example | What it shows |
|---|---|
| advanced-delegation | This example shows an application-level parent/child agent pattern. The parent agent may call a delegate tool but not the child's record tool. The delegate tool runs a child agent with its own tool scope, policy, and fixture model. |
| checkpoint | This example uses published PyPI praxo-core==0.9.0 to keep checkpoint storage application-owned while using the SDK allowlist for payload encoding. |
| consumer | This starter installs praxo-core==0.12.0 from PyPI in a dedicated virtual environment. It does not import the repository's Python implementation. Use Python 3.11 or newer. No runtime dependency other than PRAXO-CORE is needed. |
| event-sink | This example uses published PyPI praxo-core==0.9.0 to observe agent lifecycle and tool events without coupling the agent to a logging or telemetry backend. |
| hitl | This example demonstrates a write tool that requires human approval: |
| identity-policy | This example uses published PyPI praxo-core==0.9.0 to bind a trusted principal to Core policy authorization. The application owns authentication and principal storage; Core only calls the policy hook. |
| live-model | This example uses published PyPI praxo-core==0.9.0 to connect the Python Core to an OpenAI-compatible endpoint and registers one low-risk get_time tool. |
| mcp | This example uses published PyPI praxo-core==0.9.0 to connect to a minimal stdio MCP server, list its tools, register them in a Core registry, and call one tool. |
| provider-fallback | This example uses published PyPI praxo-core==0.9.0 to fall back to a second model when the primary model call fails. |
| representative-chain | This deterministic example exercises the same application seams as the Go representative chain without a live provider: |
| retry | This example uses published PyPI praxo-core==0.9.0 to retry transient model failures without changing the agent loop. |
| service | This example embeds published PyPI praxo-core==0.9.0 in a standard-library HTTP service. The application supplies a principal and tenant, restricts tools, and returns JSON. |
| service-auth | This example embeds published PyPI praxo-core==0.9.0 in a standard-library HTTP service with application-owned identity, tenant policy, an optional external policy decision service, and file-backed checkpoints. |
| session-checkpoint | This example saves and restores a conversation history across two agent turns. It uses a teaching in-memory store; production storage and retention remain application-owned. |
| streaming | This example uses published PyPI praxo-core==0.9.0 to consume deltas while the agent loop keeps running normally. |
| structured-output | This example uses published PyPI praxo-core==0.9.0 to turn free text into validated JSON with StructuredOutput. |
| structured-output-app | This example turns a directory of text files into validated JSON lines with StructuredOutput. It is an application-shaped path: input files, a validated result file, a separate failure file, and a resume mode. |
Scenario-oriented tutorials live under language/python/Tutorial. Planning context: Tutorial Plan, 100 candidate agent scenarios, and Tutorial Catalog.
| Path | What it shows |
|---|---|
| Tutorial | # Python Tutorials |
| audiobook-production | Plans fixed licensed voices and mixing cues and drafts a review-only plan. No synthesis, rendering or rights guarantee. |
| biodiversity-alerts | A bounded first slice of AE-05, not an anti-poaching dispatch system. It classifies fixed labeled observations and drafts a review-only ranger alert. No species-recognition guarantee, automatic pursuit or live model. |
| bug-repair | A bounded first slice of SE-02, not an autonomous coding agent. It reproduces a seeded defect, applies a review-only patch to an in-memory fixture and reruns a fixture test. No real repository scan, test runner, commit or pull request is used. |
| cbt-exercise | A bounded first slice of HC-05, not a therapist or crisis service. It walks a fixed synthetic CBT exercise, keeps an explicit human_review escalation branch, and drafts a review-only summary. No live session, diagnosis, therapist replacement or unsupervised crisis handling. |
| clinical-guidelines | A bounded first slice of HC-01, not diagnosis or treatment advice. It retrieves fixed synthetic guideline excerpts, cites the top match, drafts a review-only summary, and abstains when no evidence matches. No patient records or live model are used. |
| credit-diligence | A bounded first slice of FC-03, not a credit decision or fraud adjudication system. It computes fixed ratios for one synthetic applicant and drafts a review-only memo. No bureau call, decision or live model is used. |
| dubbing-plan | A bounded first slice of MD-04, not a dubbing or voice-cloning product. It reads fixed licensed media segments and drafts a review-only caption and timing plan. No audio synthesis, impersonation, unconsented voice cloning or verified lip-sync. |
| education-tutoring | A native Python Core tutorial for a guided study plan. An application-owned LessonRetriever implements the Core Retriever protocol and returns typed Documents with metadata and scores; the agent cites the top lesson and drafts a review-only study plan. This tutorial does not read arbitrary files, create assignments, identify a student or call a live model. |
| insurance-claims | A native Python Core tutorial for review-only claim triage. Two fixed tools read a synthetic claim file and draft a decision; the deterministic model packages the tool-computed risk and payout into a schema-validated report. StructuredOutput rejects a malformed report before the application sees it. This tutorial does not execute a payment, adjudicate coverage, read arbitrary files, call a live model or mutate a policy. |
| legal-compliance | A native Python Core tutorial for a compliance memo with a human-review gate. One tool searches fixed policy fixtures; a second tool publishes the memo only after the application approves the interrupt. The deterministic model packages the cited evidence. This tutorial does not read arbitrary files, call a real case system, publish to a real document store or call a live model. |
| literature-review | Retrieves two fixed abstracts and drafts unverified hypotheses with citations. No fabricated papers or verified conclusions. |
| litigation-timeline | Builds a cited timeline from fixed documents and drafts a review-only examination outline. No legal advice or admissibility claim. |
| marketing-segments | Computes fixed consent-aware segments and drafts review-only content. No publication or tracking. |
| molecule-screen | A bounded first slice of SC-02, not drug discovery. It ranks fixed synthetic molecular descriptors under stated constraints and drafts a review-only assessment. No efficacy, toxicity, synthesis or clinical claim. |
| negotiation-interpretation | Compares fixed transcript terms, flags uncertainty and drafts review-only notes. No mind reading, micro-expression inference or live interpretation guarantee. |
| office-qa | A native Python Core tutorial for office-policy Q&A with citations. The Agent has one fixed tool, search_documents, which searches three synthetic policy documents. The deterministic model packages the top search result and its document ID into an answer. It does not read arbitrary files, call a connector, update the documents or send email. |
| order-review | First local integration slice, not a completed HR or Web tutorial. The native Python Core chooses a scoped review_order tool. The tool reads a synthetic order through HTTP and creates a deterministic resolution draft. It never changes the order or issues a refund. Recommendations are application rules; model text is not proof that the draft exists. |
| patent-fto | A bounded first slice of LJ-02, not a freedom-to-operate or patentability opinion. It compares fixed synthetic claims and drafts review-only questions for counsel. No live patent search, legal advice or non-infringement conclusion. |
| pentest-lab-review | Inventories one fixed loopback lab and drafts a review-only report. No external scanning or exploit chain. |
| phishing-awareness | A bounded first slice of CY-04, not a mail-security product. It analyzes one fixed synthetic email and drafts a review-only awareness exercise. No deceptive sends, live inbox or infrastructure attack. |
| pollution-tracing | A bounded first slice of CT-05, not an environmental enforcement system. It compares fixed sensor and weather records and drafts review-only investigation hypotheses. No live monitoring, causal finding or enforcement action. |
| precedent-outline | A bounded first slice of LJ-04, not legal research or advice. It retrieves fixed synthetic precedents and drafts a cited review-only outline. No live legal database, sentencing recommendation or judicial decision. |
| recruiting-match | A bounded first slice of OP-05, not an automated hiring system. It matches fixed synthetic candidates against one role and drafts a review-only shortlist. No outreach, identity checks or live model are used. |
| threat-hunting | Searches fixed logs and drafts a cited synthetic TTP timeline. No external intelligence or APT detection guarantee. |
| trial-screening | A bounded first slice of HC-03, not patient recruitment or eligibility adjudication. It evaluates fixed synthetic patients against trial criteria and drafts a review-only screening note. No real patient data, enrollment or live model. |
| virtual-pi | A bounded first slice of OG-07, not an autonomous research team. It coordinates three fixed literature/simulation/review tasks within one shared budget and drafts a review-only plan with provenance. No external tools, scientific-validity claim or live model. |
No accepted end-to-end reference application is recorded for this language yet. Candidate goals are tracked in the Reference Application Portfolio.
This mirror contains the language source and the shared spec/ vectors, so the implementation can be built and tested here. See language/python/README.md for the exact commands. The monorepo CI runs conformance, API snapshot, and native tests for this implementation.
Reference application source is not end-to-end portfolio acceptance; follow each README's scope and evidence. PRAXO-CORE is not a hosted model, workflow engine, identity provider, or safety controller. Do not infer exactly-once execution, complete sandbox isolation, production security certification, live-provider behavior, or physical safety from this package.
- X: https://x.com/axisvela
- Weibo: https://weibo.com/u/1936025761
- LinkedIn: https://www.linkedin.com/company/axisvela/
- Facebook: https://www.facebook.com/profile.php?id=61596905732406
- YouTube: https://www.youtube.com/@axisvela
- Discord: https://discord.com/channels/1575163993767809064/1575164343148875977
- GitHub Discussions: https://github.com/axisvela/praxo-core/discussions
- GitHub Issues: https://github.com/axisvela/praxo-core/issues
- Documentation: https://axisvela.github.io/praxo-core/
- Architect: https://axisvela.architect.pub
language/python/— implementation source, tests, API snapshot, and examplesspec/— shared contract, vectors, and parity inventoriesLICENSE— MIT license
- Canonical source: https://github.com/axisvela/praxo-core/tree/main/language/python
- Registry introduction:
language/python/REGISTRY.md - Machine-readable entry:
language/python/llms.txtandlanguage/python/llms.md - Mirror repository: https://github.com/axisvela/praxo-core-python
- Release index: https://axisvela.github.io/praxo-core/languages/registry-status/
This repository is a discovery mirror of the canonical Python source. The monorepo remains the source of truth and the release workflow source. The mirror's main branch tracks current source, not a release snapshot. Source tags refer to the canonical monorepo and are not necessarily present in this mirror; syncing the branch does not publish mirror tags or registry packages.
MIT licensed.