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

Function toolErrorResponse

internal/cli/tool_test.go:1156–1174  ·  view source on GitHub ↗
(
	code toolspkg.ErrorCode,
	reason toolspkg.ReasonCode,
	message string,
	layer string,
)

Source from the content-addressed store, hash-verified

1154}
1155
1156func toolErrorResponse(
1157 code toolspkg.ErrorCode,
1158 reason toolspkg.ReasonCode,
1159 message string,
1160 layer string,
1161) ToolErrorResponseRecord {
1162 return ToolErrorResponseRecord{
1163 Error: contract.ToolErrorPayload{
1164 Code: code,
1165 Message: message,
1166 ToolID: toolspkg.ToolIDSkillView,
1167 ReasonCodes: []toolspkg.ReasonCode{reason},
1168 Layer: layer,
1169 Details: map[string]json.RawMessage{
1170 "approval_token": json.RawMessage(`"approval-token-secret"`),
1171 },
1172 },
1173 }
1174}

Calls

no outgoing calls

Tested by

no test coverage detected