MCPcopy Create free account
hub / github.com/anomalyco/opencode-bench / serializeError

Function serializeError

src/agents/claude-code.ts:51–60  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

49}
50
51function serializeError(error: unknown): Record<string, unknown> {
52 if (error instanceof Error) {
53 return {
54 name: error.name,
55 message: error.message,
56 stack: error.stack,
57 };
58 }
59 return { value: String(error) };
60}
61
62const claudeCodeAgent: Agent.Definition = {
63 async run(model, prompt, options) {

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected