Peteos makes classes agentic. They interact with their class members.
Extend and specialize agents using inheritance.
Compose to build multi agent systems easily.
class GroceryList(AgenticObject): "You manage a grocery list. Add items, list them, clear." def __init__(self): super().__init__() self._items: dict[Grocery, int] = {} @tool def add_item(self, item: Grocery, quantity: int): self._items[item] = self._items.get(item, 0) + quantity return f"Added {quantity} {item.value}s." groceries = GroceryList() await groceries.invoke_agent("Add 2 milk and 3 eggs to the list.") await groceries.invoke_agent("How much will my shopping cost?")
Give each Agentic Object a specific purpose following Separation of Concerns.
Agent-tuned models are orders of magnitude more efficient than generalists.
Use the peteos platform to auto calibrate agent specific models. Learn More
@agentic_object(model="google/gemma4")
class MathExpert(AgenticObject): """You are a solver for mathematic problems.""" ...
@agentic_object(model="zai/glm-4.7")
class RegExpert(AgenticObject): """You are an expert for building regular expressions.""" ...
Make use of ready-to-use agentic building blocks to get started without building from scratch.
Observe streams and trigger condition-based actions - Enables universal agentic stream processing
Shared text buffers for text editing and web navigation - Enables universal reading, searching and editing
Shared image buffers for processing images from disk, taking screenshots and observing cameras - Enables universal Agentic Vision
Build complex agents by inheriting abilities of simpler ones - Enables shared Stream-, Text- and Image Buffer usage
from peteos import AgenticObject
class MyAgent(AgenticObject): """You are a helpful assistant."""
@tool def process(self, data: str): return f"Processed: {data}"
agent = MyAgent()
result = await agent.invoke_agent("Process this data.")