MCPcopy Index your code
hub / github.com/coder/coder / subagentErrorResponse

Function subagentErrorResponse

coderd/x/chatd/subagent_catalog.go:267–274  ·  view source on GitHub ↗
(err error, chat *database.Chat)

Source from the content-addressed store, hash-verified

265}
266
267func subagentErrorResponse(err error, chat *database.Chat) fantasy.ToolResponse {
268 if chat == nil {
269 return fantasy.NewTextErrorResponse(err.Error())
270 }
271 return toolJSONErrorResponse(withSubagentType(map[string]any{
272 "error": err.Error(),
273 }, *chat))
274}
275
276func buildSpawnAgentDescription(
277 ctx context.Context,

Callers 1

subagentToolsMethod · 0.85

Calls 3

toolJSONErrorResponseFunction · 0.85
withSubagentTypeFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected