agora.core.agent
Agent identity models.
Module Attributes
Fallback model id when an AgentConfig / event / request omits one. |
Classes
Configuration needed to create a new agent. |
|
Full identity hydrated from a Matrix identity room (in later sprints). |
- agora.core.agent.DEFAULT_MODEL = 'ollama/qwen2.5:7b-instruct'
Fallback model id when an AgentConfig / event / request omits one. Ollama is the only backend; the real default lives in
agora.config.Settings.llm_model.
- class agora.core.agent.AgentConfig[source]
Bases:
objectConfiguration needed to create a new agent.
- allowed_tools: tuple[str, ...] = ()
Seat-scoped tool ALLOWLIST (by LLM-facing tool name). Empty = unrestricted (the role’s full manifest). When set, the agent’s manifest is filtered to this set, so the model is offered ONLY these tools (executor is untouched — system/auto-hook calls still work). Used to hold a seat to its measured tool surface; see scripts/run_phased.py (run 1.4 / F12).
- __init__(name, role, model='ollama/qwen2.5:7b-instruct', instructions='', knowledge_files=(), allowed_tools=())
- class agora.core.agent.AgentIdentity[source]
Bases:
objectFull identity hydrated from a Matrix identity room (in later sprints).
- agent_id: AgentId
- room_id: RoomId
- config: AgentConfig
- property effective_instructions: str
Base instructions plus any active learnings above the confidence threshold.
- __init__(agent_id, room_id, config, knowledge_refs=<factory>, learned_patterns=<factory>)