Run agents and workflows with Restack.
get-started
command to create a new Restack application
pipx install restackio.get-started --force && restackio.get-started
Agent with tools
exampleAgent with chat
exampleexamples-python
repository.
git clone https://github.com/restackio/examples-python.git
cd examples-python/agent_todo
docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:7233 -p 9233:9233 -p 10233:10233 -p 11233:11233 ghcr.io/restackio/restack:main
uv venv && source .venv/bin/activate
python -m venv .venv && source .venv/bin/activate
uv sync
uv run dev
pip install -e .
python -c "from src.services import watch_services; watch_services()"
POST http://localhost:6233/api/agents/AgentTodo
uv run schedule
python -c "from schedule import run_schedule; run_schedule()"
{
"agentId": "{agent_id}",
"runId": "{run_id}",
"eventName": "message",
"eventInput": {
"content": "Can you send an email to the CEO?"
}
}
client = Restack()
client.send_agent_event(
agent_id="agent-id",
run_id="run-id",
event_name="eventName",
event_input={"key": data.value}
)
Was this page helpful?