Files
microdao-daarion/services/agent-runtime/models.py
Apple 744c149300
Some checks failed
Build and Deploy Docs / build-and-deploy (push) Has been cancelled
Add automated session logging system
- Created logs/ structure (sessions, operations, incidents)
- Added session-start/log/end scripts
- Installed Git hooks for auto-logging commits/pushes
- Added shell integration for zsh
- Created CHANGELOG.md
- Documented today's session (2026-01-10)
2026-01-10 04:53:17 -08:00

50 lines
828 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