diff --git a/agent/core.go b/agent/core.go index b773442..bd5ee9e 100644 --- a/agent/core.go +++ b/agent/core.go @@ -311,7 +311,7 @@ type AgentCoreConfig struct { // but has no knowledge of how output is rendered. type agent struct { sess *session.Session - r *reasoning + r *Agent log *olog.Logger sessionsDir string readPlanStep func() string @@ -459,7 +459,7 @@ func NewAgentCore(cfg AgentCoreConfig) Core { Uname: cfg.Uname, CWD: paths.ExpandHome(cfg.CWD), }), - r: &reasoning{ + r: &Agent{ history: cfg.History, runtime: rt, agentName: cfg.AgentName, diff --git a/agent/reasoning.go b/agent/reasoning.go index 06437a9..2cda683 100644 --- a/agent/reasoning.go +++ b/agent/reasoning.go @@ -8,11 +8,11 @@ import ( "ollie/tools" ) -// reasoning holds the state of the current reasoning entity (the "agent" +// Agent holds the state of the current Agent entity (the "agent" // in the traditional sense). It is swappable: when the user runs /agent, -// a new reasoning is built from the new agent config while the session +// a new Agent is built from the new agent config while the session // host remains stable. -type reasoning struct { +type Agent struct { history *History runtime *Runtime cfg agentConfig // per-turn config built from runtime @@ -28,7 +28,7 @@ type reasoning struct { } // Backend returns the active backend from the runtime. -func (r *reasoning) Backend() backend.Backend { +func (r *Agent) Backend() backend.Backend { if r.runtime == nil { return nil }