Files
microdao-daarion/services/agent-runtime/models.py
Apple fca48b3eb0 feat(node2): Complete NODE2 setup - guardian, agents, swapper models
- Node-guardian running on MacBook and updating metrics
- NODE2 agents (Atlas, Greeter, Oracle, Builder Bot) assigned to node-2-macbook-m4max
- Swapper models displaying correctly (8 models)
- DAGI Router agents showing with correct status (3 active, 1 stale)
- Router health check using node_cache for remote nodes
2025-12-02 07:07:58 -08:00

41 lines
819 B
Python

from pydantic import BaseModel
from typing import Literal, Optional, Dict, Any
from datetime import datetime
class AgentInvocation(BaseModel):
agent_id: str
entrypoint: Literal["channel_message", "direct", "cron"] = "channel_message"
payload: Dict[str, Any]
class AgentBlueprint(BaseModel):
id: str
name: str
model: str
instructions: str
capabilities: Dict[str, Any] = {}
tools: list[str] = []
class ChannelMessage(BaseModel):
sender_id: str
sender_type: Literal["human", "agent"]
content: str
created_at: datetime
class LLMRequest(BaseModel):
model: str
messages: list[Dict[str, str]]
max_tokens: int = 1000
temperature: float = 0.7
class LLMResponse(BaseModel):
content: str
model: str
usage: Optional[Dict[str, int]] = None