Skip to Content
AgentDeck 6.0 is here: serve one deck over HTTP, AG-UI or the terminal.See what's new
ExamplesOverview

Examples

Four runnable examples, each one file or two and each about a single idea. Every page below links to its own source.

ExampleWhat it showsNeeds a key
Chat agent with a toolA @tool and an Agent discovered from .agentdeck/, then deck.run(...). Six lines of declaration, no JSON schema and no tool loopyes
Agent with a skillA SKILL.md the model loads only when it decides it needs it, across two turns on one sessionyes
Chat in the terminalA @workflow that asks the questions with ctx.ask(...), driven by agentdeck chatno
Run events streamA run’s typed event log, printed as it arrives from deck.stream(...)no

The two without a key run the same on every machine: a @workflow is your own Python, and the events example scripts the model in-process.

git clone https://github.com/agentdecksdk/agentdeck cd agentdeck/examples/chat-agent-with-a-tool export OPENAI_API_KEY=sk-... python run.py

The reference application, Jack, is documented separately: he is the agent answering questions on this site, and his page records the reasoning behind each decision in him.

Last updated on