agora.core.agent

Agent identity models.

Module Attributes

DEFAULT_MODEL

Fallback model id when an AgentConfig / event / request omits one.

Classes

AgentConfig

Configuration needed to create a new agent.

AgentIdentity

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: object

Configuration needed to create a new agent.

name: str
role: AgentRole
model: str = 'ollama/qwen2.5:7b-instruct'
instructions: str = ''
knowledge_files: tuple[str, ...] = ()
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: object

Full identity hydrated from a Matrix identity room (in later sprints).

agent_id: AgentId
room_id: RoomId
config: AgentConfig
knowledge_refs: list[str]
learned_patterns: list[Learning]
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>)