MCPcopy Create free account
hub / github.com/codehamr/codehamr / newestToolIndex

Function newestToolIndex

internal/ctx/ctx.go:287–294  ·  view source on GitHub ↗

newestToolIndex returns the index of the newest tool-result message in history, or -1. Everything after it can only be non-tool (a system nudge, an assistant summary), so it marks the current turn's newest tool exchange.

(history []Message)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

PackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected