@opencode-ai/ai 0.0.0-next-16255 → 0.0.0-next-16273

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.
Files changed (42) hide show
  1. package/dist/llm.d.ts +60 -60
  2. package/dist/protocols/anthropic-messages.d.ts +303 -303
  3. package/dist/protocols/anthropic-messages.js +1 -0
  4. package/dist/protocols/bedrock-converse.d.ts +246 -242
  5. package/dist/protocols/gemini.d.ts +136 -132
  6. package/dist/protocols/gemini.js +1 -0
  7. package/dist/protocols/open-responses.d.ts +232 -232
  8. package/dist/protocols/openai-chat.d.ts +147 -141
  9. package/dist/protocols/openai-chat.js +1 -0
  10. package/dist/protocols/openai-compatible-chat.d.ts +48 -46
  11. package/dist/protocols/openai-compatible-responses.d.ts +56 -56
  12. package/dist/protocols/openai-responses.d.ts +388 -388
  13. package/dist/protocols/shared.d.ts +5 -4
  14. package/dist/protocols/shared.js +1 -0
  15. package/dist/protocols/utils/bedrock-media.d.ts +10 -10
  16. package/dist/protocols/utils/tool-stream.d.ts +180 -180
  17. package/dist/providers/amazon-bedrock.d.ts +109 -107
  18. package/dist/providers/anthropic-compatible.d.ts +145 -145
  19. package/dist/providers/anthropic.d.ts +145 -145
  20. package/dist/providers/azure.d.ts +112 -110
  21. package/dist/providers/cloudflare.d.ts +144 -138
  22. package/dist/providers/github-copilot.d.ts +112 -110
  23. package/dist/providers/google-vertex-chat.d.ts +48 -46
  24. package/dist/providers/google-vertex-messages.d.ts +145 -146
  25. package/dist/providers/google-vertex-responses.d.ts +56 -56
  26. package/dist/providers/google-vertex.d.ts +52 -50
  27. package/dist/providers/google.d.ts +52 -50
  28. package/dist/providers/openai-compatible-responses.d.ts +56 -56
  29. package/dist/providers/openai-compatible.d.ts +48 -46
  30. package/dist/providers/openai.d.ts +176 -174
  31. package/dist/providers/openrouter.d.ts +147 -141
  32. package/dist/providers/xai.d.ts +112 -110
  33. package/dist/route/client.d.ts +60 -60
  34. package/dist/schema/errors.d.ts +2 -6
  35. package/dist/schema/errors.js +2 -5
  36. package/dist/schema/events.d.ts +1117 -1115
  37. package/dist/schema/messages.d.ts +9 -9
  38. package/dist/schema/messages.js +3 -4
  39. package/dist/tool-runtime.js +1 -1
  40. package/dist/tool.d.ts +5 -4
  41. package/dist/tool.js +1 -0
  42. package/package.json +5 -5
@@ -25,45 +25,47 @@ export type Settings = ProviderPackage.Settings & ({
25
25
  readonly providerOptions?: Gemini.ProviderOptionsInput;
26
26
  };
27
27
  export declare const routes: Route<{
28
- readonly contents: readonly import("effect/Schema").Struct.ReadonlySide<{
29
- readonly role: import("effect/Schema").Literals<readonly ["user", "model"]>;
30
- readonly parts: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
31
- readonly text: import("effect/Schema").String;
32
- readonly thought: import("effect/Schema").optional<import("effect/Schema").Boolean>;
33
- readonly thoughtSignature: import("effect/Schema").optional<import("effect/Schema").String>;
34
- }>, import("effect/Schema").Struct<{
35
- readonly inlineData: import("effect/Schema").Struct<{
36
- readonly mimeType: import("effect/Schema").String;
37
- readonly data: import("effect/Schema").String;
38
- }>;
39
- }>, import("effect/Schema").Struct<{
40
- readonly functionCall: import("effect/Schema").Struct<{
41
- readonly id: import("effect/Schema").optional<import("effect/Schema").String>;
42
- readonly name: import("effect/Schema").String;
43
- readonly args: import("effect/Schema").Unknown;
44
- }>;
45
- readonly thoughtSignature: import("effect/Schema").optional<import("effect/Schema").String>;
46
- }>, import("effect/Schema").Struct<{
47
- readonly functionResponse: import("effect/Schema").Struct<{
48
- readonly id: import("effect/Schema").optional<import("effect/Schema").String>;
49
- readonly name: import("effect/Schema").String;
50
- readonly response: import("effect/Schema").Unknown;
51
- readonly parts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
52
- readonly inlineData: import("effect/Schema").Struct<{
53
- readonly mimeType: import("effect/Schema").String;
54
- readonly data: import("effect/Schema").String;
55
- }>;
56
- }>>>;
57
- }>;
58
- }>]>>;
59
- }, "Type">[];
60
- readonly tools?: readonly import("effect/Schema").Struct.ReadonlySide<{
61
- readonly functionDeclarations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
62
- readonly name: import("effect/Schema").String;
63
- readonly description: import("effect/Schema").String;
64
- readonly parameters: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
65
- }>>;
66
- }, "Type">[] | undefined;
28
+ readonly contents: readonly {
29
+ readonly role: "user" | "model";
30
+ readonly parts: readonly ({
31
+ readonly inlineData: {
32
+ readonly mimeType: string;
33
+ readonly data: string;
34
+ };
35
+ } | {
36
+ readonly text: string;
37
+ readonly thought?: boolean | undefined;
38
+ readonly thoughtSignature?: string | undefined;
39
+ } | {
40
+ readonly functionCall: {
41
+ readonly name: string;
42
+ readonly args: unknown;
43
+ readonly id?: string | undefined;
44
+ };
45
+ readonly thoughtSignature?: string | undefined;
46
+ } | {
47
+ readonly functionResponse: {
48
+ readonly name: string;
49
+ readonly response: unknown;
50
+ readonly id?: string | undefined;
51
+ readonly parts?: readonly {
52
+ readonly inlineData: {
53
+ readonly mimeType: string;
54
+ readonly data: string;
55
+ };
56
+ }[] | undefined;
57
+ };
58
+ })[];
59
+ }[];
60
+ readonly tools?: readonly {
61
+ readonly functionDeclarations: readonly {
62
+ readonly name: string;
63
+ readonly description: string;
64
+ readonly parameters?: {
65
+ readonly [x: string]: unknown;
66
+ } | undefined;
67
+ }[];
68
+ }[] | undefined;
67
69
  readonly generationConfig?: {
68
70
  readonly temperature?: number | undefined;
69
71
  readonly topP?: number | undefined;
@@ -75,17 +77,17 @@ export declare const routes: Route<{
75
77
  } | undefined;
76
78
  readonly maxOutputTokens?: number | undefined;
77
79
  } | undefined;
78
- readonly systemInstruction?: import("effect/Schema").Struct.ReadonlySide<{
79
- readonly parts: import("effect/Schema").$Array<import("effect/Schema").Struct<{
80
- readonly text: import("effect/Schema").String;
81
- }>>;
82
- }, "Type"> | undefined;
83
- readonly toolConfig?: import("effect/Schema").Struct.ReadonlySide<{
84
- readonly functionCallingConfig: import("effect/Schema").Struct<{
85
- readonly mode: import("effect/Schema").Literals<readonly ["AUTO", "NONE", "ANY"]>;
86
- readonly allowedFunctionNames: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
87
- }>;
88
- }, "Type"> | undefined;
80
+ readonly systemInstruction?: {
81
+ readonly parts: readonly {
82
+ readonly text: string;
83
+ }[];
84
+ } | undefined;
85
+ readonly toolConfig?: {
86
+ readonly functionCallingConfig: {
87
+ readonly mode: "AUTO" | "NONE" | "ANY";
88
+ readonly allowedFunctionNames?: readonly string[] | undefined;
89
+ };
90
+ } | undefined;
89
91
  }, import("../route/transport/http").HttpPrepared<string>>[];
90
92
  export declare const configure: (input?: Config) => {
91
93
  id: string & import("effect/Brand").Brand<"LLM.ProviderID">;
@@ -8,45 +8,47 @@ export type GeminiOptionsInput = Gemini.OptionsInput;
8
8
  export type GeminiProviderOptionsInput = Gemini.ProviderOptionsInput;
9
9
  export declare const id: string & import("effect/Brand").Brand<"LLM.ProviderID">;
10
10
  export declare const routes: import("../route").Route<{
11
- readonly contents: readonly import("effect/Schema").Struct.ReadonlySide<{
12
- readonly role: import("effect/Schema").Literals<readonly ["user", "model"]>;
13
- readonly parts: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
14
- readonly text: import("effect/Schema").String;
15
- readonly thought: import("effect/Schema").optional<import("effect/Schema").Boolean>;
16
- readonly thoughtSignature: import("effect/Schema").optional<import("effect/Schema").String>;
17
- }>, import("effect/Schema").Struct<{
18
- readonly inlineData: import("effect/Schema").Struct<{
19
- readonly mimeType: import("effect/Schema").String;
20
- readonly data: import("effect/Schema").String;
21
- }>;
22
- }>, import("effect/Schema").Struct<{
23
- readonly functionCall: import("effect/Schema").Struct<{
24
- readonly id: import("effect/Schema").optional<import("effect/Schema").String>;
25
- readonly name: import("effect/Schema").String;
26
- readonly args: import("effect/Schema").Unknown;
27
- }>;
28
- readonly thoughtSignature: import("effect/Schema").optional<import("effect/Schema").String>;
29
- }>, import("effect/Schema").Struct<{
30
- readonly functionResponse: import("effect/Schema").Struct<{
31
- readonly id: import("effect/Schema").optional<import("effect/Schema").String>;
32
- readonly name: import("effect/Schema").String;
33
- readonly response: import("effect/Schema").Unknown;
34
- readonly parts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
35
- readonly inlineData: import("effect/Schema").Struct<{
36
- readonly mimeType: import("effect/Schema").String;
37
- readonly data: import("effect/Schema").String;
38
- }>;
39
- }>>>;
40
- }>;
41
- }>]>>;
42
- }, "Type">[];
43
- readonly tools?: readonly import("effect/Schema").Struct.ReadonlySide<{
44
- readonly functionDeclarations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
45
- readonly name: import("effect/Schema").String;
46
- readonly description: import("effect/Schema").String;
47
- readonly parameters: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
48
- }>>;
49
- }, "Type">[] | undefined;
11
+ readonly contents: readonly {
12
+ readonly role: "user" | "model";
13
+ readonly parts: readonly ({
14
+ readonly inlineData: {
15
+ readonly mimeType: string;
16
+ readonly data: string;
17
+ };
18
+ } | {
19
+ readonly text: string;
20
+ readonly thought?: boolean | undefined;
21
+ readonly thoughtSignature?: string | undefined;
22
+ } | {
23
+ readonly functionCall: {
24
+ readonly name: string;
25
+ readonly args: unknown;
26
+ readonly id?: string | undefined;
27
+ };
28
+ readonly thoughtSignature?: string | undefined;
29
+ } | {
30
+ readonly functionResponse: {
31
+ readonly name: string;
32
+ readonly response: unknown;
33
+ readonly id?: string | undefined;
34
+ readonly parts?: readonly {
35
+ readonly inlineData: {
36
+ readonly mimeType: string;
37
+ readonly data: string;
38
+ };
39
+ }[] | undefined;
40
+ };
41
+ })[];
42
+ }[];
43
+ readonly tools?: readonly {
44
+ readonly functionDeclarations: readonly {
45
+ readonly name: string;
46
+ readonly description: string;
47
+ readonly parameters?: {
48
+ readonly [x: string]: unknown;
49
+ } | undefined;
50
+ }[];
51
+ }[] | undefined;
50
52
  readonly generationConfig?: {
51
53
  readonly temperature?: number | undefined;
52
54
  readonly topP?: number | undefined;
@@ -58,17 +60,17 @@ export declare const routes: import("../route").Route<{
58
60
  } | undefined;
59
61
  readonly maxOutputTokens?: number | undefined;
60
62
  } | undefined;
61
- readonly systemInstruction?: import("effect/Schema").Struct.ReadonlySide<{
62
- readonly parts: import("effect/Schema").$Array<import("effect/Schema").Struct<{
63
- readonly text: import("effect/Schema").String;
64
- }>>;
65
- }, "Type"> | undefined;
66
- readonly toolConfig?: import("effect/Schema").Struct.ReadonlySide<{
67
- readonly functionCallingConfig: import("effect/Schema").Struct<{
68
- readonly mode: import("effect/Schema").Literals<readonly ["AUTO", "NONE", "ANY"]>;
69
- readonly allowedFunctionNames: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
70
- }>;
71
- }, "Type"> | undefined;
63
+ readonly systemInstruction?: {
64
+ readonly parts: readonly {
65
+ readonly text: string;
66
+ }[];
67
+ } | undefined;
68
+ readonly toolConfig?: {
69
+ readonly functionCallingConfig: {
70
+ readonly mode: "AUTO" | "NONE" | "ANY";
71
+ readonly allowedFunctionNames?: readonly string[] | undefined;
72
+ };
73
+ } | undefined;
72
74
  }, import("../route/transport/http").HttpPrepared<string>>[];
73
75
  export type Config = RouteDefaultsInput & ProviderAuthOption<"optional"> & {
74
76
  readonly baseURL?: string;
@@ -19,68 +19,69 @@ export interface Settings extends ProviderPackage.Settings {
19
19
  export declare const routes: import("../route").Route<{
20
20
  readonly input: readonly ({
21
21
  readonly type: "reasoning";
22
- readonly summary: readonly import("effect/Schema").Struct.ReadonlySide<{
23
- readonly type: import("effect/Schema").tag<"summary_text">;
24
- readonly text: import("effect/Schema").String;
25
- }, "Type">[];
22
+ readonly summary: readonly {
23
+ readonly type: "summary_text";
24
+ readonly text: string;
25
+ }[];
26
26
  readonly id?: string | undefined;
27
27
  readonly encrypted_content?: string | null | undefined;
28
- } | import("effect/Schema").Struct.ReadonlySide<{
29
- readonly type: import("effect/Schema").tag<"item_reference">;
30
- readonly id: import("effect/Schema").String;
31
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
32
- readonly role: import("effect/Schema").tag<"system">;
33
- readonly content: import("effect/Schema").String;
34
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
35
- readonly role: import("effect/Schema").tag<"user">;
36
- readonly content: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
37
- readonly type: import("effect/Schema").tag<"input_text">;
38
- readonly text: import("effect/Schema").String;
39
- }>, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
40
- readonly type: import("effect/Schema").tag<"input_image">;
41
- readonly image_url: import("effect/Schema").String;
42
- }>, import("effect/Schema").Struct<{
43
- readonly type: import("effect/Schema").tag<"input_file">;
44
- readonly filename: import("effect/Schema").String;
45
- readonly file_data: import("effect/Schema").String;
46
- readonly mime_type: import("effect/Schema").optional<import("effect/Schema").String>;
47
- }>]>]>>;
48
- }, "Type"> | {
49
- readonly content: readonly import("effect/Schema").Struct.ReadonlySide<{
50
- readonly type: import("effect/Schema").tag<"output_text">;
51
- readonly text: import("effect/Schema").String;
52
- }, "Type">[];
28
+ } | {
29
+ readonly type: "item_reference";
30
+ readonly id: string;
31
+ } | {
32
+ readonly role: "system";
33
+ readonly content: string;
34
+ } | {
35
+ readonly role: "user";
36
+ readonly content: readonly ({
37
+ readonly type: "input_image";
38
+ readonly image_url: string;
39
+ } | {
40
+ readonly type: "input_file";
41
+ readonly filename: string;
42
+ readonly file_data: string;
43
+ readonly mime_type?: string | undefined;
44
+ } | {
45
+ readonly type: "input_text";
46
+ readonly text: string;
47
+ })[];
48
+ } | {
49
+ readonly content: readonly {
50
+ readonly type: "output_text";
51
+ readonly text: string;
52
+ }[];
53
53
  readonly role: "assistant";
54
54
  readonly phase?: "commentary" | "final_answer" | undefined;
55
- } | import("effect/Schema").Struct.ReadonlySide<{
56
- readonly type: import("effect/Schema").tag<"function_call">;
57
- readonly call_id: import("effect/Schema").String;
58
- readonly name: import("effect/Schema").String;
59
- readonly arguments: import("effect/Schema").String;
60
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
61
- readonly type: import("effect/Schema").tag<"function_call_output">;
62
- readonly call_id: import("effect/Schema").String;
63
- readonly output: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
64
- readonly type: import("effect/Schema").tag<"input_text">;
65
- readonly text: import("effect/Schema").String;
66
- }>, import("effect/Schema").Struct<{
67
- readonly type: import("effect/Schema").tag<"input_image">;
68
- readonly image_url: import("effect/Schema").String;
69
- }>, import("effect/Schema").Struct<{
70
- readonly type: import("effect/Schema").tag<"input_file">;
71
- readonly filename: import("effect/Schema").String;
72
- readonly file_data: import("effect/Schema").String;
73
- readonly mime_type: import("effect/Schema").optional<import("effect/Schema").String>;
74
- }>]>>]>;
75
- }, "Type">)[];
55
+ } | {
56
+ readonly type: "function_call";
57
+ readonly call_id: string;
58
+ readonly name: string;
59
+ readonly arguments: string;
60
+ } | {
61
+ readonly type: "function_call_output";
62
+ readonly call_id: string;
63
+ readonly output: string | readonly ({
64
+ readonly type: "input_image";
65
+ readonly image_url: string;
66
+ } | {
67
+ readonly type: "input_file";
68
+ readonly filename: string;
69
+ readonly file_data: string;
70
+ readonly mime_type?: string | undefined;
71
+ } | {
72
+ readonly type: "input_text";
73
+ readonly text: string;
74
+ })[];
75
+ })[];
76
76
  readonly model: string;
77
77
  readonly stream: true;
78
78
  readonly text?: {
79
79
  readonly verbosity?: "low" | "medium" | "high" | undefined;
80
80
  } | undefined;
81
+ readonly instructions?: string | undefined;
81
82
  readonly reasoning?: {
82
- readonly effort?: string | undefined;
83
83
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
84
+ readonly effort?: string | undefined;
84
85
  } | undefined;
85
86
  readonly tools?: readonly {
86
87
  readonly type: "function";
@@ -92,13 +93,12 @@ export declare const routes: import("../route").Route<{
92
93
  readonly strict?: boolean | undefined;
93
94
  }[] | undefined;
94
95
  readonly temperature?: number | undefined;
95
- readonly tool_choice?: "required" | "none" | "auto" | import("effect/Schema").Struct.ReadonlySide<{
96
- readonly type: import("effect/Schema").tag<"function">;
97
- readonly name: import("effect/Schema").String;
98
- }, "Type"> | undefined;
96
+ readonly tool_choice?: "required" | "none" | "auto" | {
97
+ readonly type: "function";
98
+ readonly name: string;
99
+ } | undefined;
99
100
  readonly top_p?: number | undefined;
100
101
  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;
101
- readonly instructions?: string | undefined;
102
102
  readonly store?: boolean | undefined;
103
103
  readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
104
104
  readonly prompt_cache_key?: string | undefined;
@@ -16,66 +16,68 @@ export type FamilyModelOptions = RouteDefaultsInput & ProviderAuthOption<"option
16
16
  readonly baseURL?: string;
17
17
  };
18
18
  export declare const routes: import("../route").Route<{
19
- readonly messages: readonly (import("effect/Schema").Struct.ReadonlySide<{
20
- readonly role: import("effect/Schema").Literal<"system">;
21
- readonly content: import("effect/Schema").String;
22
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
23
- readonly role: import("effect/Schema").Literal<"user">;
24
- readonly content: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
25
- readonly type: import("effect/Schema").Literal<"text">;
26
- readonly text: import("effect/Schema").String;
27
- }>, import("effect/Schema").Struct<{
28
- readonly type: import("effect/Schema").Literal<"image_url">;
29
- readonly image_url: import("effect/Schema").Struct<{
30
- readonly url: import("effect/Schema").String;
31
- }>;
32
- }>]>>]>;
33
- }, "Type"> | {
19
+ readonly model: string;
20
+ readonly messages: readonly ({
21
+ readonly role: "system";
22
+ readonly content: string;
23
+ } | {
24
+ readonly role: "user";
25
+ readonly content: string | readonly ({
26
+ readonly type: "text";
27
+ readonly text: string;
28
+ } | {
29
+ readonly type: "image_url";
30
+ readonly image_url: {
31
+ readonly url: string;
32
+ };
33
+ })[];
34
+ } | {
34
35
  readonly [x: string]: unknown;
35
36
  readonly content: string | null;
36
37
  readonly role: "assistant";
37
38
  readonly reasoning?: string | undefined;
38
- readonly tool_calls?: readonly import("effect/Schema").Struct.ReadonlySide<{
39
- readonly id: import("effect/Schema").String;
40
- readonly type: import("effect/Schema").tag<"function">;
41
- readonly function: import("effect/Schema").Struct<{
42
- readonly name: import("effect/Schema").String;
43
- readonly arguments: import("effect/Schema").String;
44
- }>;
45
- }, "Type">[] | undefined;
46
39
  readonly reasoning_content?: string | undefined;
47
40
  readonly reasoning_text?: string | undefined;
41
+ readonly tool_calls?: readonly {
42
+ readonly id: string;
43
+ readonly type: "function";
44
+ readonly function: {
45
+ readonly name: string;
46
+ readonly arguments: string;
47
+ };
48
+ }[] | undefined;
48
49
  readonly reasoning_details?: unknown;
49
- } | import("effect/Schema").Struct.ReadonlySide<{
50
- readonly role: import("effect/Schema").Literal<"tool">;
51
- readonly tool_call_id: import("effect/Schema").String;
52
- readonly content: import("effect/Schema").String;
53
- }, "Type">)[];
54
- readonly model: string;
50
+ } | {
51
+ readonly role: "tool";
52
+ readonly tool_call_id: string;
53
+ readonly content: string;
54
+ })[];
55
55
  readonly stream: true;
56
56
  readonly stop?: readonly string[] | undefined;
57
- readonly tools?: readonly import("effect/Schema").Struct.ReadonlySide<{
58
- readonly type: import("effect/Schema").tag<"function">;
59
- readonly function: import("effect/Schema").Struct<{
60
- readonly name: import("effect/Schema").String;
61
- readonly description: import("effect/Schema").String;
62
- readonly parameters: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
63
- }>;
64
- }, "Type">[] | undefined;
57
+ readonly tools?: readonly {
58
+ readonly type: "function";
59
+ readonly function: {
60
+ readonly name: string;
61
+ readonly description: string;
62
+ readonly parameters: {
63
+ readonly [x: string]: unknown;
64
+ };
65
+ };
66
+ }[] | undefined;
65
67
  readonly temperature?: number | undefined;
66
68
  readonly seed?: number | undefined;
67
69
  readonly frequency_penalty?: number | undefined;
68
70
  readonly max_tokens?: number | undefined;
69
71
  readonly presence_penalty?: number | undefined;
70
- readonly stream_options?: import("effect/Schema").Struct.ReadonlySide<{
71
- readonly include_usage: import("effect/Schema").Boolean;
72
- }, "Type"> | undefined;
73
- readonly tool_choice?: "required" | "none" | "auto" | import("effect/Schema").Struct.ReadonlySide<{
74
- readonly type: import("effect/Schema").tag<"function">;
75
- readonly function: import("effect/Schema").Struct<{
76
- readonly name: import("effect/Schema").String;
77
- }>;
78
- }, "Type"> | undefined;
72
+ readonly stream_options?: {
73
+ readonly include_usage: boolean;
74
+ } | undefined;
75
+ readonly tool_choice?: "required" | "none" | "auto" | {
76
+ readonly type: "function";
77
+ readonly function: {
78
+ readonly name: string;
79
+ };
80
+ } | undefined;
79
81
  readonly top_p?: number | undefined;
80
82
  readonly store?: boolean | undefined;
81
83
  readonly reasoning_effort?: string | undefined;