MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / toolResultMsg

Function toolResultMsg

internal/compact/strategy_test.go:26–32  ·  view source on GitHub ↗
(id, result string)

Source from the content-addressed store, hash-verified

24}
25
26func toolResultMsg(id, result string) api.Message {
27 return api.Message{Role: api.RoleUser, Content: []api.Block{{
28 Type: api.BlockToolResult,
29 ToolUseID: id,
30 ToolResult: result,
31 }}}
32}
33
34// When the desired split already lands on a clean user text message,
35// SafeSplitPoint returns it as-is.

Calls

no outgoing calls

Tested by

no test coverage detected