MCPcopy Create free account
hub / github.com/compozy/agh / sampleInvokeResponse

Function sampleInvokeResponse

internal/cli/tool_test.go:1142–1154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1140}
1141
1142func sampleInvokeResponse() ToolInvokeResponseRecord {
1143 return ToolInvokeResponseRecord{
1144 ToolID: toolspkg.ToolIDToolInfo,
1145 Status: "completed",
1146 DurationMS: 4,
1147 Result: toolspkg.ToolResult{
1148 Preview: "agh__skill_view",
1149 Structured: json.RawMessage(`{"ok":true}`),
1150 DurationMS: 4,
1151 },
1152 Events: []contract.ToolCallEventPayload{},
1153 }
1154}
1155
1156func toolErrorResponse(
1157 code toolspkg.ErrorCode,

Calls

no outgoing calls

Tested by

no test coverage detected