PrepGenAICerts
← Back to Labs

Error Propagation Context

context managementFill in Blank

Complete this structured error context object returned from a failed web search subagent. The coordinator needs enough information to make intelligent recovery decisions.

interface SubagentErrorContext {
  failureType: string;
  attemptedQuery: string;
  partialResults: SearchResult[];
  alternativeApproaches: string[];
}

function buildErrorContext(
  error: Error,
  query: string,
  resultsBeforeFailure: SearchResult[]
): SubagentErrorContext {
  return {
    // Classify the failure so the coordinator knows whether to retry
    failureType: "",

    attemptedQuery: query,

    // Include what was gathered before the failure occurred
    partialResults: ,

    // Suggest recovery strategies the coordinator can evaluate
    alternativeApproaches: [
      ,
    ],
  };
}

PrepGenAICerts.com is an independent third-party exam-prep platform for the Claude Certified Architect (CCA-F) certification. We are not affiliated with, endorsed by, or acting on behalf of Anthropic PBC.

Note: New premium upgrades are temporarily paused while we resolve an issue with our payment provider. Existing premium members retain full access.