docs(runtime): update RunTurn contract — it now does KG recall/ingest
This commit is contained in:
1 parent
b7cbfc584c
commit
5d6326981e
1 file changed
+5
-3
+5
-3
@@ -35,9 +35,11 @@ type TurnEmit func(AgentEvent)
|
|||||||
// session state on replay. It differs from Run by design: it is headless
|
// session state on replay. It differs from Run by design: it is headless
|
||||||
// (live events go only through the emit callback, never an internal channel),
|
// (live events go only through the emit callback, never an internal channel),
|
||||||
// it dispatches tool calls serially (Run parallelizes concurrency-safe
|
// it dispatches tool calls serially (Run parallelizes concurrency-safe
|
||||||
// batches), and it does NOT perform compaction, knowledge-graph recall/ingest,
|
// batches), and it does NOT perform compaction, streaming-tool kickoff, or the
|
||||||
// streaming-tool kickoff, or the trace/slog emissions that Run's emitToolResult
|
// trace/slog emissions that Run's emitToolResult produces (those remain Run's
|
||||||
// produces. Those remain Run's responsibility.
|
// responsibility). It DOES perform bounded-synchronous knowledge-graph recall on
|
||||||
|
// the first round of an exchange (folding the hint into the system prompt) and
|
||||||
|
// async knowledge-graph ingest on the completing round.
|
||||||
func (r *Runtime) RunTurn(ctx context.Context, userMsg string, images []llm.ImageContent, emit TurnEmit) (TurnResult, error) {
|
func (r *Runtime) RunTurn(ctx context.Context, userMsg string, images []llm.ImageContent, emit TurnEmit) (TurnResult, error) {
|
||||||
if emit == nil {
|
if emit == nil {
|
||||||
emit = func(AgentEvent) {}
|
emit = func(AgentEvent) {}
|
||||||
|
|||||||
Reference in new issue
Block a user