promptise-com/Foundry

The foundation layer for agentic intelligence.

What it is

Promptise Foundry (the PyPI package is called promptise) is a Python framework for building agentic AI systems — programs where an AI model doesn't just answer a prompt, but works through a task step by step, calls tools, and takes actions in your existing systems.

The README's core promise: you start with one agent on your laptop and scale to many agents running real work, using the same framework and the same way of building — no rewrite in between.

The three layers

The framework is organized around three parts that every agentic system needs:

Layer Role What it does
Agent it thinks Works through a task step by step, checks its own work
Interface it acts Safe access to your tools, data, and existing systems
Harness it operates Keeps agents running 24/7, within budget, with an audit trail

Getting started (from the README)

pip install promptise
export OPENAI_API_KEY=sk-...

Then in Python:

from promptise import build_agent, tool

@tool
def order_status(order_id: str) -> dict:
    """Look up the status of an order."""
    return {"order_id": order_id, "status": "shipped", "eta": "Friday"}

agent = await build_agent(
    model="openai:gpt-5-mini",
    instructions="You are a helpful support assistant.",
    extra_tools=[order_status],
    observe=True,  # traces every step, token and cost
)
result = await agent.ainvoke({"messages": [{"role": "user", "content": "Where is order A-1001?"}]})

Key mechanics shown here:

  • Any Python function becomes a tool by decorating it with @tool — its type hints become the schema the model sees.
  • One string selects any model: openai:gpt-5-mini, anthropic:claude-sonnet-5-5, azure:chat-prod, gemini:gemini-3.8-flash, bedrock:…, ollama:llama3.1. The same string works everywhere (in code, in config files, in CLI commands).
  • MCP servers plug in directly — you give the agent a server URL and it discovers the tools itself.

Project workflow

promptise.toml is to an agent project what package.json is to a Node project: it names the main file, scripts, and environment. Commands:

  • promptise init --project my-bot — scaffolds a project (creates promptise.toml, agent.py, main.py, .env.example)
  • promptise run — runs your program like python main.py, but with the project's environment
  • promptise run --devtools — live traces, tool calls, tokens, cost
  • promptise run --tui — full terminal UI
  • promptise run --serve — exposes an HTTP API for your agent
  • promptise run --prod — JSON logs, preflight checks, graceful shutdown
  • [scripts] work like npm scripts (promptise run dev), and --watch restarts on save

MCPcast: turn an existing API into an MCP server

promptise mcpcast openapi.yaml --profile standard --auth env-token

MCPcast reads an OpenAPI or Swagger document and generates a reviewed MCP server — a small set of tools an agent can actually use, chosen and described for agents. Output is a full project (installable package, launcher, test suite, pyproject.toml, Dockerfile, README), all regenerated from one editable file (mcpcast.plan.yaml). --eval grades the result A–F with a real agent before you ship.

Governance features (built in, not bolted on)

  • Multi-tenant by construction — tag a request with a tenant, and memory, cache, conversations, rate limits, and audit stay separated per tenant. It's a structural rule, not a filter you remember to apply.
  • Human approval enforced on the server — mark a tool as needing sign-off; the approval is required no matter which app calls it. Denies on timeout, rejects self-approval, records who approved what.
  • Real identity per agent — agents authenticate as themselves to APIs, backed by Microsoft Entra ID, AWS, Google Cloud, SPIFFE, or OIDC. No shared API keys.
  • Tamper-evident audit trail — every action is written to a chain tied to tenant and user; purge_user() deletes a user's cached answers, memories, and recorded events on request.
  • Runs offline — security models, embeddings, and vector store can run locally, so the whole stack works air-gapped for regulated environments.

Scope of what ships

The README's feature table is extensive. Highlights per layer:

  • Agent: memory, RAG, conversations, semantic cache, guardrails, approval, sandboxing, streaming, fallback, observability, a graph-based Reasoning Engine (reasoning as a graph you can read and change), and prompt-engineering tooling (PromptBlocks, ConversationFlow, testing suites).
  • Interface: full MCP server and client support, routers/middleware, auth, multi-tenancy, caching, resilience, queueing, deployment, testing.
  • Harness: an Agent Runtime for unattended operation — processes, budgets, health checks, secrets, triggers (cron, webhooks, file watch), journaling with replay/rewind, distributed coordination, dashboard, CLI — plus the Agent Identity system.

Practical facts

  • Python: 3.10 – 3.13
  • License: Apache 2.0
  • Install: pip install promptise
  • Docs: docs.promptise.com
  • Status: has CI tests, a GitHub Discussions forum, and a star count badge (no numbers given in the README itself)

Related

  • Project
  • Project
  • Project
  • Project
  • Project