IFClite TypeScript API
    Preparing search index...

    Type Alias ContentBlock

    ContentBlock:
        | { text: string; type: "text" }
        | {
            id: string;
            input: unknown;
            name: string;
            rawInput?: string;
            type: "tool_call";
        }
        | { provider: string; type: "opaque"; value: unknown }

    Type Declaration

    • { text: string; type: "text" }
    • {
          id: string;
          input: unknown;
          name: string;
          rawInput?: string;
          type: "tool_call";
      }

      input is the parsed JSON; rawInput is set instead when it did not parse.

    • { provider: string; type: "opaque"; value: unknown }

      A provider block the agent does not interpret (thinking, a refusal fallback marker) that must be sent back unchanged on the next turn.