PromptisePromptise
PlatformSoonEnterprise
DocsGitHub
Talk to usGet started
Promptise - AI Framework LogoPromptise

The full-stack framework for agentic systems. Build with the framework. Run it on the platform. Launch it with our engineers.

pip install promptise

[01] Product

  • Framework
  • Platform (coming soon)
  • Enterprise
  • How it works
  • Contact

[02] Framework

  • The Agent
  • The Interface
  • The Harness

[03] Resources

  • Documentation
  • GitHub
  • Why Promptise
  • Use cases
  • Roadmap
  • Guides
  • Learning Paths
  • Questions

[04] Company

  • About
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Subprocessors

© 2026 Promptise by Manser Ventures. All rights reserved.

hello@promptise.com
← Guides> Topic

Building AI agents in Python

An AI agent is a program that gives a language model a goal, a set of tools and a loop: the model decides on a step, the program runs it, and the result goes back to the model until the task is done. The model is only one part. The rest is ordinary software that decides what the model sees, which tools it may call, when to stop and what happens when something fails.

These guides build that software in Python, starting with a working agent and then covering each piece in turn: the harness around the model, the system prompt, choosing a model for tool calling, keeping an agent's setup in a YAML file, and streaming its answers to a web client. Each guide explains the idea first and then shows runnable code with Promptise Foundry. Start with the first guide if you are new to agents; the others can be read in any order.

9
guides
3
Beginner
6
Intermediate
3 h
of reading
01

Start here

What Is an AI Agent? Definition, How It Works, Examples

What an AI agent is: a model that calls tools in a loop until a goal is met. How the loop works, a real example, agents vs chatbots and workflows, FAQs.

Beginner · 7 minRead the guide →

Then read on, in this order

8 guides

  1. 02How to Build an AI Agent in Python (2026 Guide)Build an AI agent in Python step by step: write the tool loop, serve tools over MCP, add model fallback, approvals and limits. Runnable code, real output.Beginner · 20 minBeginner · 20 min→
  2. 03ReAct Agent Pattern: Tool Execution Loop Explained SimplyThe ReAct agent pattern explained simply: what an agent does after it calls a tool, a loop written by hand, the same agent in Promptise, where it breaks.Beginner · 14 minBeginner · 14 min→
  3. 04Build a Personal AI Agent: Memory, Reminders, ChatBuild a personal AI agent you host: chat over a signed webhook, memory that survives restarts, and reminders on a cron trigger, with runnable code.Intermediate · 25 minIntermediate · 25 min→
  4. 05What Is an Agent Harness? Parts and How to Build OneWhat an agent harness is and how to build one: the tool loop, context compaction, token budgets, loop guards and verification, with runnable code.Intermediate · 18 minIntermediate · 18 min→
  5. 06System Prompt Best Practices for AI Agents in PythonBuild agent system prompts from reusable blocks, switch them by conversation phase, and test them like code. Real Python runs, honest limits.Intermediate · 24 minIntermediate · 24 min→
  6. 07Best LLM for AI Agents (2026): Picks, Prices, How to TestThe best LLM for AI agents in 2026 by use case, from public agent benchmarks and vendor prices, why the boards disagree, and how to test models yourself.Intermediate · 20 minIntermediate · 20 min→
  7. 08AI Agent YAML: Define and Run an Agent From a Config FileDefine an AI agent in a YAML file: model, instructions and MCP servers. Validate it, run it from the CLI or Python, keep secrets out, review it in Git.Intermediate · 18 minIntermediate · 18 min→
  8. 09Streaming LLM Responses with FastAPI: Tokens and Tool CallsStream an AI agent's tool calls and answer from FastAPI to a web page with Server-Sent Events, with cancellation, errors and an EventSource page.Intermediate · 14 minIntermediate · 14 min→

Other topics

  • Models and providers
  • Tools and the Model Context Protocol (MCP)
  • Memory, context and RAG
  • Agent reasoning patterns
  • Multi-agent systems
  • Guardrails and security
  • Human approvals (human-in-the-loop)
  • Observability and debugging
  • Cost control and rate limits
  • Testing and evals
  • Runtime, triggers and deployment
  • Frameworks and comparisons
  • AI at work
  • AI for leaders
  • Enterprise AI agents

In the documentation

  • Quickstartdocs ↗
  • Building agentsdocs ↗
  • Configurationdocs ↗
  • Streamingdocs ↗

Build it with Promptise Foundry.

The code in these guides runs on Promptise Foundry, an open-source Python framework for AI agents and MCP servers.

QuickstartAll guides