Skip to main content
The simplest possible Agent — one instruction, no tools, one call. This is the plain Agent showcase.
Single-purpose agent for content generation. Minimal setup, no external tools.

Quick Start

1

Simple Usage

Create an agent with one instruction and call it.
2

With Configuration

Add memory and structured output for richer behaviour.

How It Works


Simple

Agents: 1 — Single task requires only one agent.

Workflow

  1. Receive input prompt
  2. Process with LLM
  3. Return generated content

Setup

Run — Python

Run — CLI

Run — agents.yaml

Serve API


Advanced Workflow (All Features)

Agents: 1 — Single agent with memory, persistence, structured output, and session resumability.

Workflow

  1. Initialize session with unique ID for resumability
  2. Configure SQLite persistence for conversation history
  3. Process input with structured Pydantic output
  4. Store results in memory for future context
  5. Resume session later with same session_id

Setup

Run — Python

Run — CLI

Run — agents.yaml

Serve API


Save Output to File

Save agent responses to files using different methods:
Agent decides when to save:
See Save Agent Output for complete guide.

Monitor / Verify

Cleanup

Features Demonstrated

Best Practices

A plain Agent handles most text tasks. Add tools only when the job genuinely needs live data or actions the model cannot perform alone.
The single instruction shapes every response. A precise role — “content writer, output Markdown” — beats a vague “be helpful” for consistent results.
Set memory=True when a task spans several messages so the agent keeps context instead of treating each call as new.
Use a Task with output_file or a file-writing tool so generated content lands on disk automatically.

Add a search tool for real-time information.

Chain prompts for multi-step workflows.