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

Function toolUseMsg

internal/compact/strategy_test.go:17–24  ·  view source on GitHub ↗
(id, name string)

Source from the content-addressed store, hash-verified

15}
16
17func toolUseMsg(id, name string) api.Message {
18 return api.Message{Role: api.RoleAssistant, Content: []api.Block{{
19 Type: api.BlockToolUse,
20 ToolUseID: id,
21 ToolName: name,
22 ToolInput: "{}",
23 }}}
24}
25
26func toolResultMsg(id, result string) api.Message {
27 return api.Message{Role: api.RoleUser, Content: []api.Block{{

Calls

no outgoing calls

Tested by

no test coverage detected