Skip to main content
Back to SDK Overview and resources AgenticAI Core is a Python SDK for building and deploying multi-agent AI applications. You define agents, tools, models, and orchestration in Python (design-time), and a runtime exposes them through an MCP server:
The five core building blocks are: For installation, workspace setup, and the full development lifecycle, see the SDK overview. This page walks through two complete examples.

Example 1: Banking Assistant

A single-agent banking assistant with custom Python tools and a session-scoped memory store for account data.

Overview

The assistant handles three tasks:
  • Check account balances
  • Transfer funds between accounts
  • Answer general banking questions

Implementation

1. Define Custom Tools

Tools are async Python functions registered with @Tool.register. They access session memory and emit structured logs via RequestContext and Logger.

2. Define Memory Store

A session-scoped memory store holds account data and is referenced by the agent prompt using {{memory.accountInfo.accounts}}.

3. Define Agent

4. Create Custom Orchestrator

5. Build Application

6. Start Application

Testing

To deploy and run end-to-end tests:

Project Structure

Key Takeaways

  1. Modular design - Separate tools, agents, and orchestration into distinct files
  2. Memory integration - Use memory stores to inject account context directly into agent prompts
  3. Comprehensive logging - Track all operations using Logger
  4. Security - Never request passwords or PINs; always confirm amounts before executing transfers

Example 2: Multi-Agent Customer Service

A customer service application that routes requests across three specialized agents and handles escalation between them.

Overview

Three agents cover distinct domains:
  • SupportAgent - Handles general inquiries
  • BillingAgent - Manages payments and billing
  • TechnicalAgent - Resolves technical issues

Application Architecture

Implementation

1. Define Specialized Agents

Each agent is scoped to a domain and equipped with the MCP tools it needs.

2. Create Multi-Agent Orchestrator

The orchestrator uses keyword matching to route requests and detects signals in agent responses to trigger escalation.

3. Build Application

4. Start Application

Workflow Examples

Billing query:
Technical issue with escalation:
Multi-intent query:

Testing

Best Practices

  1. Agent specialization - Keep each agent focused on a single domain.
  2. Clear routing - Implement routing logic with sensible fallbacks for unmatched queries.
  3. Escalation paths - Define explicit signals (for example. "unable to", "need specialist") for inter-agent escalation.
  4. Memory usage - Share data across agents via memory stores rather than passing it in messages.
  5. Error handling - Handle failures gracefully at each level of the orchestration chain.