Quick Reference¶
Python API¶
import asyncio
from victor.framework import Agent, EventType
async def main():
async with await Agent.create(provider="ollama", model="llama3.1:8b") as agent:
result = await agent.run("Explain this repository")
print(result.content)
async for event in agent.stream("Summarize the key points"):
if event.type == EventType.CONTENT:
print(event.content, end="")
asyncio.run(main())
Agent.chat(prompt) creates a chat session synchronously. Use await session.send(...)
for subsequent turns. Agent.stream, not Agent.astream, provides streamed events.
See Python API for session and result details.
Workflows¶
Use the workflow tutorial for YAML files and StateGraph.
await agent.run_workflow(name, context={...}) runs a named workflow supplied by the
configured vertical. It does not load a YAML filename.
Teams¶
Use await Agent.create_team(name=..., goal=..., members=...), then await team.run().
See multi-agent teams for a complete example.
CLI¶
The installed command's help lists the available flags for your version. See the
CLI reference, installation,
and configuration guides.
The former expanded cheatsheet is preserved in page history.