Skip to content

Commit 23100bd

Browse files
committed
Use inspectState function to print initial state
1 parent 38314b8 commit 23100bd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/core/orchestrator.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ export class Orchestrator<S = State, A = Action, F = Feedback, D = ProbeData, R
115115
// Outer loop call #1: Initial planning
116116
this.logger?.info('\n[Outer Loop] Calling planner.plan()...')
117117
let state = await this.planner.plan(userInput)
118-
this.logger?.info(state, `[Outer Loop] Initial state`)
118+
119+
// Use inspectState if available, otherwise log full state
120+
const stateInspection = this.probes[0]?.inspectState?.(state) ?? state
121+
this.logger?.info(stateInspection, `[Outer Loop] Initial state`)
122+
119123
outerLoopCalls++
120124
this.budget.outerLoop.record(2.0) // Cost of LLM call
121125

0 commit comments

Comments
 (0)