Skip to main content

Build AI agents.
Operate with confidence.

mAIvn is agentic infrastructure for production software. Give your agents tools, memory, private-data controls, and replayable runs through the Python SDK.

main.py Python
import os

from maivn import Agent, depends_on_tool
from maivn.messages import HumanMessage

agent = Agent(
    name="my-assistant",
    api_key=os.environ["MAIVN_API_KEY"],
    system_prompt="You are a helpful assistant.",
)

@agent.toolify(description="Get current weather for a city")
def get_weather(city: str) -> dict:
    return {"city": city, "forecast": "Sunny, 72F"}

@agent.toolify(description="Summarize the weather forecast", final_tool=True)
@depends_on_tool(get_weather, arg_name="forecast")
def summarize_weather(forecast: dict) -> str:
    return f"Weather in {forecast['city']}: {forecast['forecast']}"

res = agent.invoke(
    [HumanMessage(content="What's the weather in Austin?")],
    force_final_tool=True,
)
print(res.response)

Everything you need

The infrastructure beneath your agents: what they can reach, and how much control you keep.

Python SDK

Declare an agent, decorate its tools, and invoke it. Memory, structured output, streaming, and batch runs come with the SDK.

Tools and MCP

Authenticated toolsets for Google, Microsoft, CRMs, payments, databases, and vector stores, plus any MCP server you already run.

Triggers

Start an agent from an email, a form, a GitHub or Stripe event, a database change, a dropped file, or a schedule.

Human in the Loop

Pause a run for approval, ask a question mid-task, and dry-run permissions before an agent takes an action.

Private by Design

Configured private fields never reach a model. Fail-closed controls, scoped API keys, and audit trails throughout.

Observability and Studio

Every run is a replayable trace. Inspect each tool call, step, and result in Studio or the Portal.

Ready to build?

Check whether sign-up access is open, or explore the docs while you wait.