@openai/agents-core 0.3.8 → 0.4.0
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/agent.d.ts +1 -5
- package/dist/defaultModel.js +12 -3
- package/dist/defaultModel.js.map +1 -1
- package/dist/defaultModel.mjs +12 -3
- package/dist/defaultModel.mjs.map +1 -1
- package/dist/errors.js +1 -0
- package/dist/errors.js.map +1 -1
- package/dist/errors.mjs +1 -0
- package/dist/errors.mjs.map +1 -1
- package/dist/items.d.ts +232 -304
- package/dist/mcp.d.ts +3 -31
- package/dist/metadata.js +2 -2
- package/dist/metadata.mjs +2 -2
- package/dist/model.d.ts +3 -3
- package/dist/runState.d.ts +747 -13344
- package/dist/runner/steps.d.ts +5 -27
- package/dist/types/protocol.d.ts +744 -10641
- package/dist/utils/zodCompat.d.ts +5 -6
- package/dist/utils/zodCompat.js.map +1 -1
- package/dist/utils/zodCompat.mjs.map +1 -1
- package/dist/utils/zodJsonSchemaCompat.d.ts +1 -1
- package/dist/utils/zodJsonSchemaCompat.js +3 -0
- package/dist/utils/zodJsonSchemaCompat.js.map +1 -1
- package/dist/utils/zodJsonSchemaCompat.mjs +3 -0
- package/dist/utils/zodJsonSchemaCompat.mjs.map +1 -1
- package/package.json +3 -3
package/dist/mcp.d.ts
CHANGED
|
@@ -87,38 +87,10 @@ export declare const MCPTool: z.ZodObject<{
|
|
|
87
87
|
inputSchema: z.ZodObject<{
|
|
88
88
|
type: z.ZodLiteral<"object">;
|
|
89
89
|
properties: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
90
|
-
required: z.ZodArray<z.ZodString
|
|
90
|
+
required: z.ZodArray<z.ZodString>;
|
|
91
91
|
additionalProperties: z.ZodBoolean;
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
required: string[];
|
|
95
|
-
properties: Record<string, any>;
|
|
96
|
-
additionalProperties: boolean;
|
|
97
|
-
}, {
|
|
98
|
-
type: "object";
|
|
99
|
-
required: string[];
|
|
100
|
-
properties: Record<string, any>;
|
|
101
|
-
additionalProperties: boolean;
|
|
102
|
-
}>;
|
|
103
|
-
}, "strip", z.ZodTypeAny, {
|
|
104
|
-
name: string;
|
|
105
|
-
inputSchema: {
|
|
106
|
-
type: "object";
|
|
107
|
-
required: string[];
|
|
108
|
-
properties: Record<string, any>;
|
|
109
|
-
additionalProperties: boolean;
|
|
110
|
-
};
|
|
111
|
-
description?: string | undefined;
|
|
112
|
-
}, {
|
|
113
|
-
name: string;
|
|
114
|
-
inputSchema: {
|
|
115
|
-
type: "object";
|
|
116
|
-
required: string[];
|
|
117
|
-
properties: Record<string, any>;
|
|
118
|
-
additionalProperties: boolean;
|
|
119
|
-
};
|
|
120
|
-
description?: string | undefined;
|
|
121
|
-
}>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
}, z.core.$strip>;
|
|
122
94
|
export type MCPTool = z.infer<typeof MCPTool>;
|
|
123
95
|
/**
|
|
124
96
|
* Public interface of an MCP server that provides tools.
|
package/dist/metadata.js
CHANGED
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.METADATA = void 0;
|
|
5
5
|
exports.METADATA = {
|
|
6
6
|
"name": "@openai/agents-core",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.4.0",
|
|
8
8
|
"versions": {
|
|
9
|
-
"@openai/agents-core": "0.
|
|
9
|
+
"@openai/agents-core": "0.4.0",
|
|
10
10
|
"openai": "^6"
|
|
11
11
|
}
|
|
12
12
|
};
|
package/dist/metadata.mjs
CHANGED
package/dist/model.d.ts
CHANGED
|
@@ -7,17 +7,17 @@ import { AgentInputItem, AgentOutputItem, JsonSchemaDefinition, TextOutput, Inpu
|
|
|
7
7
|
export type ModelSettingsToolChoice = 'auto' | 'required' | 'none' | (string & {});
|
|
8
8
|
/**
|
|
9
9
|
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
10
|
-
* Currently supported values are `minimal`, `low`, `medium`, and `
|
|
10
|
+
* Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`.
|
|
11
11
|
* Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
12
12
|
*/
|
|
13
|
-
export type ModelSettingsReasoningEffort = 'none' | 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
13
|
+
export type ModelSettingsReasoningEffort = 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | null;
|
|
14
14
|
/**
|
|
15
15
|
* Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
16
16
|
*/
|
|
17
17
|
export type ModelSettingsReasoning = {
|
|
18
18
|
/**
|
|
19
19
|
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
20
|
-
* Currently supported values are `minimal`, `low`, `medium`, and `
|
|
20
|
+
* Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`.
|
|
21
21
|
* Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
22
22
|
*/
|
|
23
23
|
effort?: ModelSettingsReasoningEffort | null;
|