objectiveai-sdk 2.0.10

ObjectiveAI SDK, definitions, and utilities
Documentation
{
  "title": "functions.inventions.recursive.response.streaming.InnerError",
  "description": "An inner error from a [`FunctionInventionRecursiveChunk`](super::FunctionInventionRecursiveChunk).\n\nAlways carries `function_invention_index` identifying which wrapped\nnon-recursive `FunctionInventionChunk` produced the error (matches\n[`FunctionInventionChunk::index`](super::FunctionInventionChunk::index)).\n\nThe optional `agent_completion_index` disambiguates the failure site:\n\n- `None` → the wrapped invention's own top-level `.error` (the invention\n  itself failed).\n- `Some(N)` → an inner error from agent completion `N` inside the\n  wrapped invention (one of the items the non-recursive invention's\n  own `inner_errors()` would have yielded).\n\nWire shape:\n```json\n{ \"function_invention_index\": 0, \"error\": { } }\n{ \"function_invention_index\": 0, \"agent_completion_index\": 2, \"error\": { } }\n```\n\n`agent_completion_index` is omitted on the wire when `None`,\nmatching the chunk-format conventions in the rest of the SDK.\n\nThe recursive chunk has no top-level `.error` field of its own,\nso there is nothing to exclude at this level.",
  "type": "object",
  "properties": {
    "agent_completion_index": {
      "description": "`Some(N)` if the error came from agent completion `N` inside the\nwrapped invention; `None` if the error is the wrapped invention's\nown top-level `.error`.",
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 18446744073709551615
        },
        {
          "type": "null"
        }
      ],
      "omitempty": true
    },
    "error": {
      "description": "The underlying error.",
      "$ref": "error.ResponseError"
    },
    "function_invention_index": {
      "description": "Index of the wrapped non-recursive `FunctionInventionChunk`.",
      "type": "integer",
      "minimum": 0,
      "maximum": 18446744073709551615
    }
  }
}