@robota-sdk/agent-tools 3.0.0-beta.6 → 3.0.0-beta.60
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/README.md +38 -10
- package/dist/node/index.cjs +299 -228
- package/dist/node/index.d.cts +3 -24
- package/dist/node/index.d.ts +3 -24
- package/dist/node/index.js +308 -237
- package/package.json +14 -3
package/dist/node/index.d.cts
CHANGED
|
@@ -8,6 +8,8 @@ interface TToolResult {
|
|
|
8
8
|
output: string;
|
|
9
9
|
error?: string;
|
|
10
10
|
exitCode?: number;
|
|
11
|
+
/** Start line number of the edit in the original file (Edit tool only) */
|
|
12
|
+
startLine?: number;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
/**
|
|
@@ -95,6 +97,7 @@ interface IZodSchemaDef {
|
|
|
95
97
|
type?: IZodSchema;
|
|
96
98
|
values?: TUniversalValue[];
|
|
97
99
|
description?: string;
|
|
100
|
+
unknownKeys?: 'passthrough' | 'strip' | 'strict';
|
|
98
101
|
}
|
|
99
102
|
interface IZodSchema {
|
|
100
103
|
parse(value: TToolParameters): TToolParameters;
|
|
@@ -172,14 +175,6 @@ declare class FunctionTool implements IFunctionTool {
|
|
|
172
175
|
* Get tool description
|
|
173
176
|
*/
|
|
174
177
|
getDescription(): string;
|
|
175
|
-
/**
|
|
176
|
-
* Get detailed validation errors
|
|
177
|
-
*/
|
|
178
|
-
private getValidationErrors;
|
|
179
|
-
/**
|
|
180
|
-
* Validate individual parameter type
|
|
181
|
-
*/
|
|
182
|
-
private validateParameterType;
|
|
183
178
|
/**
|
|
184
179
|
* Validate constructor inputs
|
|
185
180
|
*/
|
|
@@ -238,10 +233,6 @@ declare class OpenAPITool implements ITool {
|
|
|
238
233
|
* @private
|
|
239
234
|
*/
|
|
240
235
|
private executeAPICall;
|
|
241
|
-
/**
|
|
242
|
-
* Find the operation in the OpenAPI specification
|
|
243
|
-
*/
|
|
244
|
-
private findOperation;
|
|
245
236
|
/**
|
|
246
237
|
* Build HTTP request configuration from OpenAPI operation and parameters
|
|
247
238
|
*/
|
|
@@ -250,18 +241,6 @@ declare class OpenAPITool implements ITool {
|
|
|
250
241
|
* Create tool schema from OpenAPI operation specification
|
|
251
242
|
*/
|
|
252
243
|
private createSchemaFromOpenAPI;
|
|
253
|
-
/**
|
|
254
|
-
* Convert OpenAPI parameter to tool parameter schema
|
|
255
|
-
*/
|
|
256
|
-
private convertOpenAPIParamToSchema;
|
|
257
|
-
/**
|
|
258
|
-
* Convert OpenAPI schema to parameter schema
|
|
259
|
-
*/
|
|
260
|
-
private convertOpenAPISchemaToParameterSchema;
|
|
261
|
-
/**
|
|
262
|
-
* Map OpenAPI type to JSON schema type
|
|
263
|
-
*/
|
|
264
|
-
private mapOpenAPIType;
|
|
265
244
|
}
|
|
266
245
|
/**
|
|
267
246
|
* Factory function to create OpenAPI tools from specification
|
package/dist/node/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ interface TToolResult {
|
|
|
8
8
|
output: string;
|
|
9
9
|
error?: string;
|
|
10
10
|
exitCode?: number;
|
|
11
|
+
/** Start line number of the edit in the original file (Edit tool only) */
|
|
12
|
+
startLine?: number;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
/**
|
|
@@ -95,6 +97,7 @@ interface IZodSchemaDef {
|
|
|
95
97
|
type?: IZodSchema;
|
|
96
98
|
values?: TUniversalValue[];
|
|
97
99
|
description?: string;
|
|
100
|
+
unknownKeys?: 'passthrough' | 'strip' | 'strict';
|
|
98
101
|
}
|
|
99
102
|
interface IZodSchema {
|
|
100
103
|
parse(value: TToolParameters): TToolParameters;
|
|
@@ -172,14 +175,6 @@ declare class FunctionTool implements IFunctionTool {
|
|
|
172
175
|
* Get tool description
|
|
173
176
|
*/
|
|
174
177
|
getDescription(): string;
|
|
175
|
-
/**
|
|
176
|
-
* Get detailed validation errors
|
|
177
|
-
*/
|
|
178
|
-
private getValidationErrors;
|
|
179
|
-
/**
|
|
180
|
-
* Validate individual parameter type
|
|
181
|
-
*/
|
|
182
|
-
private validateParameterType;
|
|
183
178
|
/**
|
|
184
179
|
* Validate constructor inputs
|
|
185
180
|
*/
|
|
@@ -238,10 +233,6 @@ declare class OpenAPITool implements ITool {
|
|
|
238
233
|
* @private
|
|
239
234
|
*/
|
|
240
235
|
private executeAPICall;
|
|
241
|
-
/**
|
|
242
|
-
* Find the operation in the OpenAPI specification
|
|
243
|
-
*/
|
|
244
|
-
private findOperation;
|
|
245
236
|
/**
|
|
246
237
|
* Build HTTP request configuration from OpenAPI operation and parameters
|
|
247
238
|
*/
|
|
@@ -250,18 +241,6 @@ declare class OpenAPITool implements ITool {
|
|
|
250
241
|
* Create tool schema from OpenAPI operation specification
|
|
251
242
|
*/
|
|
252
243
|
private createSchemaFromOpenAPI;
|
|
253
|
-
/**
|
|
254
|
-
* Convert OpenAPI parameter to tool parameter schema
|
|
255
|
-
*/
|
|
256
|
-
private convertOpenAPIParamToSchema;
|
|
257
|
-
/**
|
|
258
|
-
* Convert OpenAPI schema to parameter schema
|
|
259
|
-
*/
|
|
260
|
-
private convertOpenAPISchemaToParameterSchema;
|
|
261
|
-
/**
|
|
262
|
-
* Map OpenAPI type to JSON schema type
|
|
263
|
-
*/
|
|
264
|
-
private mapOpenAPIType;
|
|
265
244
|
}
|
|
266
245
|
/**
|
|
267
246
|
* Factory function to create OpenAPI tools from specification
|