CoAgent8 - Source API
    Preparing search index...

    Function createGeminiCollector

    • Collects supported native event dialects into one bounded public result.

      Parameters

      • OptionalonEvent: (event: AdapterEvent) => void

        Optional public-event callback; private thought/tool operands are omitted.

      Returns {
          line: (raw: string) => void;
          snapshot: () => {
              model: string
              | undefined;
              nativeSessionId: string | null;
              output: string;
              sandboxDenied: boolean;
              terminal: boolean;
              terminalError: ExecutionError | undefined;
              truncated: boolean;
              usage:
                  | {
                      inputTokens?: number;
                      outputTokens?: number;
                      source: "provider";
                      totalTokens?: number;
                  }
                  | undefined;
          };
          denySandbox(): void;
      }

      Line collector, independent denial evidence, and terminal snapshot.

      On malformed public metadata, duplicate terminals or byte/count overflow. Unknown event types are ignored with one warning per type.

      Process execution owns line decoding and cleanup. stderr denial never creates a terminal event. stdout alone establishes native terminal identity.