@opencode-ai/ai 0.0.0-next-16255 → 0.0.0-next-16274
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/llm.d.ts +60 -60
- package/dist/protocols/anthropic-messages.d.ts +303 -303
- package/dist/protocols/anthropic-messages.js +1 -0
- package/dist/protocols/bedrock-converse.d.ts +246 -242
- package/dist/protocols/gemini.d.ts +136 -132
- package/dist/protocols/gemini.js +1 -0
- package/dist/protocols/open-responses.d.ts +232 -232
- package/dist/protocols/openai-chat.d.ts +147 -141
- package/dist/protocols/openai-chat.js +1 -0
- package/dist/protocols/openai-compatible-chat.d.ts +48 -46
- package/dist/protocols/openai-compatible-responses.d.ts +56 -56
- package/dist/protocols/openai-responses.d.ts +388 -388
- package/dist/protocols/shared.d.ts +5 -4
- package/dist/protocols/shared.js +1 -0
- package/dist/protocols/utils/bedrock-media.d.ts +10 -10
- package/dist/protocols/utils/tool-stream.d.ts +180 -180
- package/dist/providers/amazon-bedrock.d.ts +109 -107
- package/dist/providers/anthropic-compatible.d.ts +145 -145
- package/dist/providers/anthropic.d.ts +145 -145
- package/dist/providers/azure.d.ts +112 -110
- package/dist/providers/cloudflare.d.ts +144 -138
- package/dist/providers/github-copilot.d.ts +112 -110
- package/dist/providers/google-vertex-chat.d.ts +48 -46
- package/dist/providers/google-vertex-messages.d.ts +145 -146
- package/dist/providers/google-vertex-responses.d.ts +56 -56
- package/dist/providers/google-vertex.d.ts +52 -50
- package/dist/providers/google.d.ts +52 -50
- package/dist/providers/openai-compatible-responses.d.ts +56 -56
- package/dist/providers/openai-compatible.d.ts +48 -46
- package/dist/providers/openai.d.ts +176 -174
- package/dist/providers/openrouter.d.ts +147 -141
- package/dist/providers/xai.d.ts +112 -110
- package/dist/route/client.d.ts +60 -60
- package/dist/schema/errors.d.ts +2 -6
- package/dist/schema/errors.js +2 -5
- package/dist/schema/events.d.ts +1117 -1115
- package/dist/schema/messages.d.ts +9 -9
- package/dist/schema/messages.js +3 -4
- package/dist/tool-runtime.js +1 -1
- package/dist/tool.d.ts +5 -4
- package/dist/tool.js +1 -0
- package/package.json +5 -5
|
@@ -402,68 +402,69 @@ export declare const fromRequestWithExtension: (request: LLMRequest, extension:
|
|
|
402
402
|
export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
|
|
403
403
|
readonly input: readonly ({
|
|
404
404
|
readonly type: "reasoning";
|
|
405
|
-
readonly summary: readonly
|
|
406
|
-
readonly type:
|
|
407
|
-
readonly text:
|
|
408
|
-
}
|
|
405
|
+
readonly summary: readonly {
|
|
406
|
+
readonly type: "summary_text";
|
|
407
|
+
readonly text: string;
|
|
408
|
+
}[];
|
|
409
409
|
readonly id?: string | undefined;
|
|
410
410
|
readonly encrypted_content?: string | null | undefined;
|
|
411
|
-
} |
|
|
412
|
-
readonly type:
|
|
413
|
-
readonly id:
|
|
414
|
-
}
|
|
415
|
-
readonly role:
|
|
416
|
-
readonly content:
|
|
417
|
-
}
|
|
418
|
-
readonly role:
|
|
419
|
-
readonly content:
|
|
420
|
-
readonly type:
|
|
421
|
-
readonly
|
|
422
|
-
}
|
|
423
|
-
readonly type:
|
|
424
|
-
readonly
|
|
425
|
-
|
|
426
|
-
readonly
|
|
427
|
-
|
|
428
|
-
readonly
|
|
429
|
-
readonly
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
readonly content: readonly
|
|
433
|
-
readonly type:
|
|
434
|
-
readonly text:
|
|
435
|
-
}
|
|
411
|
+
} | {
|
|
412
|
+
readonly type: "item_reference";
|
|
413
|
+
readonly id: string;
|
|
414
|
+
} | {
|
|
415
|
+
readonly role: "system";
|
|
416
|
+
readonly content: string;
|
|
417
|
+
} | {
|
|
418
|
+
readonly role: "user";
|
|
419
|
+
readonly content: readonly ({
|
|
420
|
+
readonly type: "input_image";
|
|
421
|
+
readonly image_url: string;
|
|
422
|
+
} | {
|
|
423
|
+
readonly type: "input_file";
|
|
424
|
+
readonly filename: string;
|
|
425
|
+
readonly file_data: string;
|
|
426
|
+
readonly mime_type?: string | undefined;
|
|
427
|
+
} | {
|
|
428
|
+
readonly type: "input_text";
|
|
429
|
+
readonly text: string;
|
|
430
|
+
})[];
|
|
431
|
+
} | {
|
|
432
|
+
readonly content: readonly {
|
|
433
|
+
readonly type: "output_text";
|
|
434
|
+
readonly text: string;
|
|
435
|
+
}[];
|
|
436
436
|
readonly role: "assistant";
|
|
437
437
|
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
438
|
-
} |
|
|
439
|
-
readonly type:
|
|
440
|
-
readonly call_id:
|
|
441
|
-
readonly name:
|
|
442
|
-
readonly arguments:
|
|
443
|
-
}
|
|
444
|
-
readonly type:
|
|
445
|
-
readonly call_id:
|
|
446
|
-
readonly output:
|
|
447
|
-
readonly type:
|
|
448
|
-
readonly
|
|
449
|
-
}
|
|
450
|
-
readonly type:
|
|
451
|
-
readonly
|
|
452
|
-
|
|
453
|
-
readonly
|
|
454
|
-
|
|
455
|
-
readonly
|
|
456
|
-
readonly
|
|
457
|
-
}
|
|
458
|
-
}
|
|
438
|
+
} | {
|
|
439
|
+
readonly type: "function_call";
|
|
440
|
+
readonly call_id: string;
|
|
441
|
+
readonly name: string;
|
|
442
|
+
readonly arguments: string;
|
|
443
|
+
} | {
|
|
444
|
+
readonly type: "function_call_output";
|
|
445
|
+
readonly call_id: string;
|
|
446
|
+
readonly output: string | readonly ({
|
|
447
|
+
readonly type: "input_image";
|
|
448
|
+
readonly image_url: string;
|
|
449
|
+
} | {
|
|
450
|
+
readonly type: "input_file";
|
|
451
|
+
readonly filename: string;
|
|
452
|
+
readonly file_data: string;
|
|
453
|
+
readonly mime_type?: string | undefined;
|
|
454
|
+
} | {
|
|
455
|
+
readonly type: "input_text";
|
|
456
|
+
readonly text: string;
|
|
457
|
+
})[];
|
|
458
|
+
})[];
|
|
459
459
|
readonly model: string;
|
|
460
460
|
readonly stream: true;
|
|
461
461
|
readonly text?: {
|
|
462
462
|
readonly verbosity?: "low" | "medium" | "high" | undefined;
|
|
463
463
|
} | undefined;
|
|
464
|
+
readonly instructions?: string | undefined;
|
|
464
465
|
readonly reasoning?: {
|
|
465
|
-
readonly effort?: string | undefined;
|
|
466
466
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
467
|
+
readonly effort?: string | undefined;
|
|
467
468
|
} | undefined;
|
|
468
469
|
readonly tools?: readonly {
|
|
469
470
|
readonly type: "function";
|
|
@@ -475,13 +476,12 @@ export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
|
|
|
475
476
|
readonly strict?: boolean | undefined;
|
|
476
477
|
}[] | undefined;
|
|
477
478
|
readonly temperature?: number | undefined;
|
|
478
|
-
readonly tool_choice?: "required" | "none" | "auto" |
|
|
479
|
-
readonly type:
|
|
480
|
-
readonly name:
|
|
481
|
-
}
|
|
479
|
+
readonly tool_choice?: "required" | "none" | "auto" | {
|
|
480
|
+
readonly type: "function";
|
|
481
|
+
readonly name: string;
|
|
482
|
+
} | undefined;
|
|
482
483
|
readonly top_p?: number | undefined;
|
|
483
484
|
readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
|
|
484
|
-
readonly instructions?: string | undefined;
|
|
485
485
|
readonly store?: boolean | undefined;
|
|
486
486
|
readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
|
|
487
487
|
readonly prompt_cache_key?: string | undefined;
|
|
@@ -492,92 +492,92 @@ export type StepResult = readonly [ParserState, ReadonlyArray<LLMEvent>];
|
|
|
492
492
|
export declare const terminal: (event: Event) => boolean;
|
|
493
493
|
export declare const onReasoningDelta: (state: ParserState, event: Event, itemID: string) => StepResult;
|
|
494
494
|
export declare const onReasoningDone: (state: ParserState, _event: Event) => StepResult;
|
|
495
|
-
export declare const step: (state: ParserState, event: Event) => LLMError | Effect.Effect<StepResult, never, never> | Effect.Effect<[ParserState, readonly (
|
|
496
|
-
readonly type:
|
|
497
|
-
readonly index:
|
|
498
|
-
}
|
|
499
|
-
readonly type: "text-start";
|
|
495
|
+
export declare const step: (state: ParserState, event: Event) => LLMError | Effect.Effect<StepResult, never, never> | Effect.Effect<[ParserState, readonly ({
|
|
496
|
+
readonly type: "step-start";
|
|
497
|
+
readonly index: number;
|
|
498
|
+
} | {
|
|
500
499
|
readonly id: string;
|
|
500
|
+
readonly type: "text-start";
|
|
501
501
|
readonly providerMetadata?: {
|
|
502
502
|
readonly [x: string]: {
|
|
503
503
|
readonly [x: string]: unknown;
|
|
504
504
|
};
|
|
505
505
|
} | undefined;
|
|
506
506
|
} | {
|
|
507
|
+
readonly id: string;
|
|
507
508
|
readonly type: "text-delta";
|
|
508
509
|
readonly text: string;
|
|
509
|
-
readonly id: string;
|
|
510
510
|
readonly providerMetadata?: {
|
|
511
511
|
readonly [x: string]: {
|
|
512
512
|
readonly [x: string]: unknown;
|
|
513
513
|
};
|
|
514
514
|
} | undefined;
|
|
515
515
|
} | {
|
|
516
|
-
readonly type: "text-end";
|
|
517
516
|
readonly id: string;
|
|
517
|
+
readonly type: "text-end";
|
|
518
518
|
readonly providerMetadata?: {
|
|
519
519
|
readonly [x: string]: {
|
|
520
520
|
readonly [x: string]: unknown;
|
|
521
521
|
};
|
|
522
522
|
} | undefined;
|
|
523
523
|
} | {
|
|
524
|
-
readonly type: "reasoning-start";
|
|
525
524
|
readonly id: string;
|
|
525
|
+
readonly type: "reasoning-start";
|
|
526
526
|
readonly providerMetadata?: {
|
|
527
527
|
readonly [x: string]: {
|
|
528
528
|
readonly [x: string]: unknown;
|
|
529
529
|
};
|
|
530
530
|
} | undefined;
|
|
531
531
|
} | {
|
|
532
|
+
readonly id: string;
|
|
532
533
|
readonly type: "reasoning-delta";
|
|
533
534
|
readonly text: string;
|
|
534
|
-
readonly id: string;
|
|
535
535
|
readonly providerMetadata?: {
|
|
536
536
|
readonly [x: string]: {
|
|
537
537
|
readonly [x: string]: unknown;
|
|
538
538
|
};
|
|
539
539
|
} | undefined;
|
|
540
540
|
} | {
|
|
541
|
-
readonly type: "reasoning-end";
|
|
542
541
|
readonly id: string;
|
|
542
|
+
readonly type: "reasoning-end";
|
|
543
543
|
readonly providerMetadata?: {
|
|
544
544
|
readonly [x: string]: {
|
|
545
545
|
readonly [x: string]: unknown;
|
|
546
546
|
};
|
|
547
547
|
} | undefined;
|
|
548
548
|
} | {
|
|
549
|
+
readonly id: string;
|
|
549
550
|
readonly type: "tool-input-start";
|
|
550
551
|
readonly name: string;
|
|
551
|
-
readonly id: string;
|
|
552
552
|
readonly providerMetadata?: {
|
|
553
553
|
readonly [x: string]: {
|
|
554
554
|
readonly [x: string]: unknown;
|
|
555
555
|
};
|
|
556
556
|
} | undefined;
|
|
557
557
|
readonly providerExecuted?: boolean | undefined;
|
|
558
|
-
} |
|
|
559
|
-
readonly type:
|
|
560
|
-
readonly id:
|
|
561
|
-
readonly name: Schema.String;
|
|
562
|
-
readonly text: Schema.String;
|
|
563
|
-
}, "Type"> | {
|
|
564
|
-
readonly type: "tool-input-end";
|
|
558
|
+
} | {
|
|
559
|
+
readonly type: "tool-input-delta";
|
|
560
|
+
readonly id: string;
|
|
565
561
|
readonly name: string;
|
|
562
|
+
readonly text: string;
|
|
563
|
+
} | {
|
|
566
564
|
readonly id: string;
|
|
565
|
+
readonly type: "tool-input-end";
|
|
566
|
+
readonly name: string;
|
|
567
567
|
readonly providerMetadata?: {
|
|
568
568
|
readonly [x: string]: {
|
|
569
569
|
readonly [x: string]: unknown;
|
|
570
570
|
};
|
|
571
571
|
} | undefined;
|
|
572
|
-
} |
|
|
573
|
-
readonly type:
|
|
574
|
-
readonly id:
|
|
575
|
-
readonly name: Schema.String;
|
|
576
|
-
readonly raw: Schema.String;
|
|
577
|
-
}, "Type"> | {
|
|
578
|
-
readonly type: "tool-call";
|
|
572
|
+
} | {
|
|
573
|
+
readonly type: "tool-input-error";
|
|
574
|
+
readonly id: string;
|
|
579
575
|
readonly name: string;
|
|
576
|
+
readonly raw: string;
|
|
577
|
+
} | {
|
|
580
578
|
readonly id: string;
|
|
579
|
+
readonly type: "tool-call";
|
|
580
|
+
readonly name: string;
|
|
581
581
|
readonly input: unknown;
|
|
582
582
|
readonly providerMetadata?: {
|
|
583
583
|
readonly [x: string]: {
|
|
@@ -586,52 +586,52 @@ export declare const step: (state: ParserState, event: Event) => LLMError | Effe
|
|
|
586
586
|
} | undefined;
|
|
587
587
|
readonly providerExecuted?: boolean | undefined;
|
|
588
588
|
} | {
|
|
589
|
+
readonly id: string;
|
|
589
590
|
readonly type: "tool-result";
|
|
590
591
|
readonly name: string;
|
|
591
|
-
readonly
|
|
592
|
-
|
|
593
|
-
readonly
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
readonly
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
readonly
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
readonly
|
|
603
|
-
|
|
604
|
-
readonly
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
readonly
|
|
608
|
-
readonly
|
|
609
|
-
readonly
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
592
|
+
readonly result: {
|
|
593
|
+
readonly type: "json";
|
|
594
|
+
readonly value: unknown;
|
|
595
|
+
} | {
|
|
596
|
+
readonly type: "text";
|
|
597
|
+
readonly value: unknown;
|
|
598
|
+
} | {
|
|
599
|
+
readonly type: "error";
|
|
600
|
+
readonly value: unknown;
|
|
601
|
+
} | {
|
|
602
|
+
readonly type: "content";
|
|
603
|
+
readonly value: readonly ({
|
|
604
|
+
readonly type: "text";
|
|
605
|
+
readonly text: string;
|
|
606
|
+
} | {
|
|
607
|
+
readonly type: "file";
|
|
608
|
+
readonly uri: string;
|
|
609
|
+
readonly mime: string;
|
|
610
|
+
readonly name?: string | undefined;
|
|
611
|
+
})[];
|
|
612
|
+
};
|
|
613
|
+
readonly output?: {
|
|
614
|
+
readonly structured: unknown;
|
|
615
|
+
readonly content: readonly ({
|
|
616
|
+
readonly type: "text";
|
|
617
|
+
readonly text: string;
|
|
618
|
+
} | {
|
|
619
|
+
readonly type: "file";
|
|
620
|
+
readonly uri: string;
|
|
621
|
+
readonly mime: string;
|
|
622
|
+
readonly name?: string | undefined;
|
|
623
|
+
})[];
|
|
624
|
+
} | undefined;
|
|
613
625
|
readonly providerMetadata?: {
|
|
614
626
|
readonly [x: string]: {
|
|
615
627
|
readonly [x: string]: unknown;
|
|
616
628
|
};
|
|
617
629
|
} | undefined;
|
|
618
630
|
readonly providerExecuted?: boolean | undefined;
|
|
619
|
-
readonly output?: Schema.Struct.ReadonlySide<{
|
|
620
|
-
readonly structured: Schema.Unknown;
|
|
621
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
622
|
-
readonly type: Schema.Literal<"text">;
|
|
623
|
-
readonly text: Schema.String;
|
|
624
|
-
}>, Schema.Struct<{
|
|
625
|
-
readonly type: Schema.Literal<"file">;
|
|
626
|
-
readonly uri: Schema.String;
|
|
627
|
-
readonly mime: Schema.String;
|
|
628
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
629
|
-
}>]>>;
|
|
630
|
-
}, "Type"> | undefined;
|
|
631
631
|
} | {
|
|
632
|
+
readonly id: string;
|
|
632
633
|
readonly type: "tool-error";
|
|
633
634
|
readonly name: string;
|
|
634
|
-
readonly id: string;
|
|
635
635
|
readonly message: string;
|
|
636
636
|
readonly error?: unknown;
|
|
637
637
|
readonly providerMetadata?: {
|
|
@@ -682,68 +682,69 @@ export declare const initial: (request: LLMRequest, extension?: Extension) => Pa
|
|
|
682
682
|
export declare const protocol: Protocol<{
|
|
683
683
|
readonly input: readonly ({
|
|
684
684
|
readonly type: "reasoning";
|
|
685
|
-
readonly summary: readonly
|
|
686
|
-
readonly type:
|
|
687
|
-
readonly text:
|
|
688
|
-
}
|
|
685
|
+
readonly summary: readonly {
|
|
686
|
+
readonly type: "summary_text";
|
|
687
|
+
readonly text: string;
|
|
688
|
+
}[];
|
|
689
689
|
readonly id?: string | undefined;
|
|
690
690
|
readonly encrypted_content?: string | null | undefined;
|
|
691
|
-
} |
|
|
692
|
-
readonly type:
|
|
693
|
-
readonly id:
|
|
694
|
-
}
|
|
695
|
-
readonly role:
|
|
696
|
-
readonly content:
|
|
697
|
-
}
|
|
698
|
-
readonly role:
|
|
699
|
-
readonly content:
|
|
700
|
-
readonly type:
|
|
701
|
-
readonly
|
|
702
|
-
}
|
|
703
|
-
readonly type:
|
|
704
|
-
readonly
|
|
705
|
-
|
|
706
|
-
readonly
|
|
707
|
-
|
|
708
|
-
readonly
|
|
709
|
-
readonly
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
readonly content: readonly
|
|
713
|
-
readonly type:
|
|
714
|
-
readonly text:
|
|
715
|
-
}
|
|
691
|
+
} | {
|
|
692
|
+
readonly type: "item_reference";
|
|
693
|
+
readonly id: string;
|
|
694
|
+
} | {
|
|
695
|
+
readonly role: "system";
|
|
696
|
+
readonly content: string;
|
|
697
|
+
} | {
|
|
698
|
+
readonly role: "user";
|
|
699
|
+
readonly content: readonly ({
|
|
700
|
+
readonly type: "input_image";
|
|
701
|
+
readonly image_url: string;
|
|
702
|
+
} | {
|
|
703
|
+
readonly type: "input_file";
|
|
704
|
+
readonly filename: string;
|
|
705
|
+
readonly file_data: string;
|
|
706
|
+
readonly mime_type?: string | undefined;
|
|
707
|
+
} | {
|
|
708
|
+
readonly type: "input_text";
|
|
709
|
+
readonly text: string;
|
|
710
|
+
})[];
|
|
711
|
+
} | {
|
|
712
|
+
readonly content: readonly {
|
|
713
|
+
readonly type: "output_text";
|
|
714
|
+
readonly text: string;
|
|
715
|
+
}[];
|
|
716
716
|
readonly role: "assistant";
|
|
717
717
|
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
718
|
-
} |
|
|
719
|
-
readonly type:
|
|
720
|
-
readonly call_id:
|
|
721
|
-
readonly name:
|
|
722
|
-
readonly arguments:
|
|
723
|
-
}
|
|
724
|
-
readonly type:
|
|
725
|
-
readonly call_id:
|
|
726
|
-
readonly output:
|
|
727
|
-
readonly type:
|
|
728
|
-
readonly
|
|
729
|
-
}
|
|
730
|
-
readonly type:
|
|
731
|
-
readonly
|
|
732
|
-
|
|
733
|
-
readonly
|
|
734
|
-
|
|
735
|
-
readonly
|
|
736
|
-
readonly
|
|
737
|
-
}
|
|
738
|
-
}
|
|
718
|
+
} | {
|
|
719
|
+
readonly type: "function_call";
|
|
720
|
+
readonly call_id: string;
|
|
721
|
+
readonly name: string;
|
|
722
|
+
readonly arguments: string;
|
|
723
|
+
} | {
|
|
724
|
+
readonly type: "function_call_output";
|
|
725
|
+
readonly call_id: string;
|
|
726
|
+
readonly output: string | readonly ({
|
|
727
|
+
readonly type: "input_image";
|
|
728
|
+
readonly image_url: string;
|
|
729
|
+
} | {
|
|
730
|
+
readonly type: "input_file";
|
|
731
|
+
readonly filename: string;
|
|
732
|
+
readonly file_data: string;
|
|
733
|
+
readonly mime_type?: string | undefined;
|
|
734
|
+
} | {
|
|
735
|
+
readonly type: "input_text";
|
|
736
|
+
readonly text: string;
|
|
737
|
+
})[];
|
|
738
|
+
})[];
|
|
739
739
|
readonly model: string;
|
|
740
740
|
readonly stream: true;
|
|
741
741
|
readonly text?: {
|
|
742
742
|
readonly verbosity?: "low" | "medium" | "high" | undefined;
|
|
743
743
|
} | undefined;
|
|
744
|
+
readonly instructions?: string | undefined;
|
|
744
745
|
readonly reasoning?: {
|
|
745
|
-
readonly effort?: string | undefined;
|
|
746
746
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
747
|
+
readonly effort?: string | undefined;
|
|
747
748
|
} | undefined;
|
|
748
749
|
readonly tools?: readonly {
|
|
749
750
|
readonly type: "function";
|
|
@@ -755,13 +756,12 @@ export declare const protocol: Protocol<{
|
|
|
755
756
|
readonly strict?: boolean | undefined;
|
|
756
757
|
}[] | undefined;
|
|
757
758
|
readonly temperature?: number | undefined;
|
|
758
|
-
readonly tool_choice?: "required" | "none" | "auto" |
|
|
759
|
-
readonly type:
|
|
760
|
-
readonly name:
|
|
761
|
-
}
|
|
759
|
+
readonly tool_choice?: "required" | "none" | "auto" | {
|
|
760
|
+
readonly type: "function";
|
|
761
|
+
readonly name: string;
|
|
762
|
+
} | undefined;
|
|
762
763
|
readonly top_p?: number | undefined;
|
|
763
764
|
readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
|
|
764
|
-
readonly instructions?: string | undefined;
|
|
765
765
|
readonly store?: boolean | undefined;
|
|
766
766
|
readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
|
|
767
767
|
readonly prompt_cache_key?: string | undefined;
|
|
@@ -775,6 +775,9 @@ export declare const protocol: Protocol<{
|
|
|
775
775
|
readonly param?: string | null | undefined;
|
|
776
776
|
} | null | undefined;
|
|
777
777
|
readonly text?: string | undefined;
|
|
778
|
+
readonly message?: string | undefined;
|
|
779
|
+
readonly code?: string | null | undefined;
|
|
780
|
+
readonly delta?: string | undefined;
|
|
778
781
|
readonly response?: {
|
|
779
782
|
readonly [x: string]: unknown;
|
|
780
783
|
readonly error?: {
|
|
@@ -800,18 +803,15 @@ export declare const protocol: Protocol<{
|
|
|
800
803
|
readonly reason?: string | undefined;
|
|
801
804
|
} | null | undefined;
|
|
802
805
|
} | undefined;
|
|
803
|
-
readonly message?: string | undefined;
|
|
804
|
-
readonly code?: string | null | undefined;
|
|
805
806
|
readonly item?: {
|
|
806
807
|
readonly [x: string]: unknown;
|
|
807
808
|
readonly type: string;
|
|
808
|
-
readonly name?: string | undefined;
|
|
809
809
|
readonly id?: string | undefined;
|
|
810
|
+
readonly name?: string | undefined;
|
|
810
811
|
readonly arguments?: string | undefined;
|
|
811
812
|
readonly encrypted_content?: string | null | undefined;
|
|
812
813
|
readonly call_id?: string | undefined;
|
|
813
814
|
} | undefined;
|
|
814
|
-
readonly delta?: string | undefined;
|
|
815
815
|
readonly param?: string | null | undefined;
|
|
816
816
|
readonly item_id?: string | undefined;
|
|
817
817
|
readonly summary_index?: number | undefined;
|
|
@@ -819,68 +819,69 @@ export declare const protocol: Protocol<{
|
|
|
819
819
|
export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
820
820
|
readonly input: readonly ({
|
|
821
821
|
readonly type: "reasoning";
|
|
822
|
-
readonly summary: readonly
|
|
823
|
-
readonly type:
|
|
824
|
-
readonly text:
|
|
825
|
-
}
|
|
822
|
+
readonly summary: readonly {
|
|
823
|
+
readonly type: "summary_text";
|
|
824
|
+
readonly text: string;
|
|
825
|
+
}[];
|
|
826
826
|
readonly id?: string | undefined;
|
|
827
827
|
readonly encrypted_content?: string | null | undefined;
|
|
828
|
-
} |
|
|
829
|
-
readonly type:
|
|
830
|
-
readonly id:
|
|
831
|
-
}
|
|
832
|
-
readonly role:
|
|
833
|
-
readonly content:
|
|
834
|
-
}
|
|
835
|
-
readonly role:
|
|
836
|
-
readonly content:
|
|
837
|
-
readonly type:
|
|
838
|
-
readonly
|
|
839
|
-
}
|
|
840
|
-
readonly type:
|
|
841
|
-
readonly
|
|
842
|
-
|
|
843
|
-
readonly
|
|
844
|
-
|
|
845
|
-
readonly
|
|
846
|
-
readonly
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
readonly content: readonly
|
|
850
|
-
readonly type:
|
|
851
|
-
readonly text:
|
|
852
|
-
}
|
|
828
|
+
} | {
|
|
829
|
+
readonly type: "item_reference";
|
|
830
|
+
readonly id: string;
|
|
831
|
+
} | {
|
|
832
|
+
readonly role: "system";
|
|
833
|
+
readonly content: string;
|
|
834
|
+
} | {
|
|
835
|
+
readonly role: "user";
|
|
836
|
+
readonly content: readonly ({
|
|
837
|
+
readonly type: "input_image";
|
|
838
|
+
readonly image_url: string;
|
|
839
|
+
} | {
|
|
840
|
+
readonly type: "input_file";
|
|
841
|
+
readonly filename: string;
|
|
842
|
+
readonly file_data: string;
|
|
843
|
+
readonly mime_type?: string | undefined;
|
|
844
|
+
} | {
|
|
845
|
+
readonly type: "input_text";
|
|
846
|
+
readonly text: string;
|
|
847
|
+
})[];
|
|
848
|
+
} | {
|
|
849
|
+
readonly content: readonly {
|
|
850
|
+
readonly type: "output_text";
|
|
851
|
+
readonly text: string;
|
|
852
|
+
}[];
|
|
853
853
|
readonly role: "assistant";
|
|
854
854
|
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
855
|
-
} |
|
|
856
|
-
readonly type:
|
|
857
|
-
readonly call_id:
|
|
858
|
-
readonly name:
|
|
859
|
-
readonly arguments:
|
|
860
|
-
}
|
|
861
|
-
readonly type:
|
|
862
|
-
readonly call_id:
|
|
863
|
-
readonly output:
|
|
864
|
-
readonly type:
|
|
865
|
-
readonly
|
|
866
|
-
}
|
|
867
|
-
readonly type:
|
|
868
|
-
readonly
|
|
869
|
-
|
|
870
|
-
readonly
|
|
871
|
-
|
|
872
|
-
readonly
|
|
873
|
-
readonly
|
|
874
|
-
}
|
|
875
|
-
}
|
|
855
|
+
} | {
|
|
856
|
+
readonly type: "function_call";
|
|
857
|
+
readonly call_id: string;
|
|
858
|
+
readonly name: string;
|
|
859
|
+
readonly arguments: string;
|
|
860
|
+
} | {
|
|
861
|
+
readonly type: "function_call_output";
|
|
862
|
+
readonly call_id: string;
|
|
863
|
+
readonly output: string | readonly ({
|
|
864
|
+
readonly type: "input_image";
|
|
865
|
+
readonly image_url: string;
|
|
866
|
+
} | {
|
|
867
|
+
readonly type: "input_file";
|
|
868
|
+
readonly filename: string;
|
|
869
|
+
readonly file_data: string;
|
|
870
|
+
readonly mime_type?: string | undefined;
|
|
871
|
+
} | {
|
|
872
|
+
readonly type: "input_text";
|
|
873
|
+
readonly text: string;
|
|
874
|
+
})[];
|
|
875
|
+
})[];
|
|
876
876
|
readonly model: string;
|
|
877
877
|
readonly stream: true;
|
|
878
878
|
readonly text?: {
|
|
879
879
|
readonly verbosity?: "low" | "medium" | "high" | undefined;
|
|
880
880
|
} | undefined;
|
|
881
|
+
readonly instructions?: string | undefined;
|
|
881
882
|
readonly reasoning?: {
|
|
882
|
-
readonly effort?: string | undefined;
|
|
883
883
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
884
|
+
readonly effort?: string | undefined;
|
|
884
885
|
} | undefined;
|
|
885
886
|
readonly tools?: readonly {
|
|
886
887
|
readonly type: "function";
|
|
@@ -892,13 +893,12 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
|
|
|
892
893
|
readonly strict?: boolean | undefined;
|
|
893
894
|
}[] | undefined;
|
|
894
895
|
readonly temperature?: number | undefined;
|
|
895
|
-
readonly tool_choice?: "required" | "none" | "auto" |
|
|
896
|
-
readonly type:
|
|
897
|
-
readonly name:
|
|
898
|
-
}
|
|
896
|
+
readonly tool_choice?: "required" | "none" | "auto" | {
|
|
897
|
+
readonly type: "function";
|
|
898
|
+
readonly name: string;
|
|
899
|
+
} | undefined;
|
|
899
900
|
readonly top_p?: number | undefined;
|
|
900
901
|
readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
|
|
901
|
-
readonly instructions?: string | undefined;
|
|
902
902
|
readonly store?: boolean | undefined;
|
|
903
903
|
readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
|
|
904
904
|
readonly prompt_cache_key?: string | undefined;
|