Write agents in Python — the Friday platform handles the rest. Your agent runs as a Python subprocess with access to LLMs, HTTP, and MCP tools through theDocumentation Index
Fetch the complete documentation index at: https://docs.hellofriday.ai/llms.txt
Use this file to discover all available pages before exploring further.
ctx interface.
How it works
Your agent is a Python function with two inputs and one output:@agent decorator registers your function with Friday. Call run() in the __main__ block — that’s how the subprocess connects to the daemon.
Quick example
agent.py
@agent decorator registers metadata. Host capabilities on ctx handle LLM calls, HTTP requests, MCP tools, and streaming. ok() returns structured data to the platform.
Development setup
Install the SDK locally for IDE support. The SDK is a Python package — Friday runs your agent as a subprocess, but you need the package locally for autocomplete and type checking. 1. Clone the SDK repository:.vscode/settings.json in your agent project:
.py file and check that from friday_agent_sdk import agent shows no import errors.
Prerequisites
- Python 3.11+ (for IDE support and local testing)
- A running Friday daemon (
friday daemon status) - An Anthropic API key
Get started
Quickstart
Build a text analysis agent from scratch in under 10 minutes.
How agents work
The subprocess model, host capabilities, and registration.
Guides
Call LLMs
Models, structured output, error handling.
HTTP requests
External API calls through the fetch layer.
MCP tools
GitHub, databases, and other MCP servers.
Structured input
Parse JSON from enriched prompts.
Stream progress
Real-time UI updates during execution.
Reference
@agent decorator
Metadata, environment, MCP, and LLM configuration.
AgentContext
Execution context and capability availability.
ctx.llm
LLM generation methods and response types.
ctx.http
HTTP fetch and response handling.
ctx.tools
MCP tool listing and invocation.
ctx.stream
Progress and intent emission.
Result types
ok(), err(), and AgentExtras.
Parse utilities
parse_input() and parse_operation().

