Documentation Hub

Build, operate, and debug
with confidence.

Public documentation for the mAIvn SDK, developer portal, Studio workflows, and API reference. Start with the quickstart path or jump to any section.

Total guides

97

Quickstart Path

Read top to bottom for the fastest path from install to live event streams.
  1. 1

    Getting Started

    Install the SDK and run your first agent invocation.

  2. 2

    Tools

    Define function tools and model tools with the right execution boundaries.

  3. 3

    Structured Output

    Guarantee typed responses with schema-driven output patterns.

  4. 4

    Memory and Recall

    Configure summarize, retrieval, and async indexing for long-running threads.

  5. 5

    Frontend Events

    Stream live execution events from your mAIvn backend to any frontend with a one-line FastAPI mount and a browser EventSource example.

  6. 6

    mAIvn Studio

    Run Studio with default config, execute apps, and inspect live SSE execution events.

Browse by Section

SDK Guides

Build and orchestrate agents with the core mAIvn SDK.

19 docs

Overview

What the mAIvn SDK is, the one mental model behind it, and where to start.

Getting Started

Install the SDK and run your first agent invocation.

Core Concepts

Agents, swarms, tools, dependency-aware execution, and sessions in one place.

Tools

Define function tools and model tools with the right execution boundaries.

Dependencies

Model tool and agent dependencies for reliable execution graphs.

Structured Output

Guarantee typed responses with schema-driven output patterns.

Multi-Agent

Coordinate specialized agents using Swarm workflows.

Sessions, Streaming & ModelConfig

How invoke and stream relate, sync versus async, ModelConfig, live available models, and what a session response carries.

System Tools

Understand built-in web search, code execution, and reasoning tools.

Private Data and PII

Keep secrets and PII out of the model: schema-only planning, execution-time injection, and RedactedMessage for automatic detection and redaction.

Interrupts & Human-in-the-Loop

Pause an agent for human input mid-run and resume the session safely.

Frontend Events

Stream live execution events from your mAIvn backend to any frontend with a one-line FastAPI mount and a browser EventSource example.

Connecting MCP Servers

Connect external Model Context Protocol tool servers to your agents.

Memory and Recall

Configure summarize, retrieval, and async indexing for long-running threads.

Scheduled Invocation

Run agents and swarms on cron, interval, or one-shot schedules with built-in retries, jitter, and lifecycle controls.

Timeouts, Retries & Reliability

Bound calls with timeouts and retry transient failures gracefully.

Authentication & API Keys

How the SDK authenticates, key scopes from the consumer's point of view, and rotating keys without downtime.

SDK Resource Management

Manage project resources and organization memory settings programmatically.

Testing & Local Development

Test agents and tools without hitting the live orchestrator.

Examples

A working tour of the SDK organized by what you'd want to build.

10 docs

Tools & Connectors

The official connector layer: kernel, generic adapters, and ready-made provider toolsets.

42 docs

Tools Overview

The official connector layer for the mAIvn SDK: a connector kernel, generic adapters, and ready-made provider toolsets.

Quickstart

The shortest path from pip install to a working tool on an Agent.

Writing Your Own Toolset

Build toolsets with the @toolset / @toolify decorators and register them with add_toolset.

Architecture

How the connector kernel layers fit together and where to extend.

Auth & Secrets

Auth strategies, secret resolvers, and credential safety.

HTTP Runtime

Transport, retries, rate limits, pagination, and error normalization.

Generic Adapters

Turn HTTP, OpenAPI, GraphQL, webhooks, and MCP servers into tools without per-provider glue.

Files & Attachments

MIME detection, attachments, extractors, and bulk transfers.

Events & Audit

Audit events, sinks, and webhook signature verification.

Testing Connectors

Use MockTransport and fixtures to test connectors without live providers.

Permissions & Dry-run

Permission flags, destructive markers, and the dry-run contract.

API Policy

Stable surface, semantic versioning, and the deprecation policy.

Security Policy

Credential handling, destructive actions, webhook signing, and path safety.

Storage

LocalFiles, Box, and Dropbox toolsets.

Email (IMAP/SMTP)

IMAP and SMTP toolsets.

Email Delivery

Resend, SendGrid, Mailgun, Postmark, Amazon SES, and other ESP toolsets.

Google Workspace

Gmail, Google Calendar, and Google Drive toolsets.

Microsoft Graph

Outlook Mail, Outlook Calendar, and Microsoft Files toolsets.

Google Productivity

Google Docs, Sheets, and Slides toolsets.

Microsoft Productivity

Microsoft Excel, Word, and PowerPoint toolsets.

Knowledge Bases & No-Code

Notion, Confluence, and Airtable toolsets.

Collaboration & Messaging

Slack, Microsoft Teams, Google Chat, and Zoom toolsets.

Social Media

X, Meta, Instagram, LinkedIn, TikTok, YouTube, and other social toolsets.

Developer Platforms

GitHub, GitLab, Bitbucket, and Azure DevOps toolsets.

Project Management

Jira and Linear toolsets.

Support & ITSM

Zendesk and ServiceNow toolsets.

CRM

HubSpot and Salesforce toolsets.

Databases

SQLite, Postgres, MySQL, SQL Server, and Supabase toolsets.

Warehouses

Snowflake and BigQuery toolsets.

ETL & Data Movement

Fivetran, Airbyte, dbt Cloud, Hightouch, Census, and Stitch toolsets.

Analytics & BI

Amplitude, Mixpanel, Segment, PostHog, Looker, Tableau, and other analytics toolsets.

HR & People Ops

Workday, BambooHR, Rippling, Gusto, Greenhouse, Lever, and Deel toolsets.

Marketing & Ads

Marketo, Iterable, Braze, Google Ads, Meta Ads, and other marketing toolsets.

Payments & Finance

Stripe, Square, PayPal, Plaid, QuickBooks, Xero, and other finance toolsets.

E-commerce

Shopify, WooCommerce, BigCommerce, Magento, Amazon Seller, and other commerce toolsets.

Trading & Market Data

Alpaca, Polygon, Coinbase, Kraken, Binance, and other trading toolsets.

AI Providers

OpenAI, Anthropic, Gemini, Bedrock, Mistral, Cohere, and other AI-provider toolsets.

Vector Stores

Pinecone, Weaviate, Qdrant, Chroma, and Milvus toolsets.

Cloud & Observability

Datadog, Sentry, PagerDuty, New Relic, Splunk, Grafana, and other ops toolsets.

AWS Core

Amazon S3, Lambda, CloudWatch Logs, and IAM toolsets.

Identity & Security

Auth0, Okta, Vault, 1Password, Bitwarden, Snyk, Twilio, and other identity toolsets.

Partner Hubs

Workato, Pipedream, Make, n8n, Composio, and the Zapier connector.

Platform

Use the mAIvn portal and Studio with public, production-safe workflows.

7 docs

API Reference

Detailed API reference for the SDK surface area.

15 docs