agent-tools / Exports
agent-tools
Table of contents
Classes
Interfaces
- IZodParseResult
- IZodSchemaDef
- IZodSchema
- IFunctionToolValidationOptions
- ISchemaConversionOptions
- IFunctionToolExecutionMetadata
- IFunctionToolResult
- TToolResult
Variables
Functions
Variables
bashTool
• Const bashTool: FunctionTool
BashTool instance — register with Robota agent tools registry.
Defined in
packages/agent-tools/src/builtins/bash-tool.ts:108
editTool
• Const editTool: FunctionTool
EditTool instance — register with Robota agent tools registry.
Defined in
packages/agent-tools/src/builtins/edit-tool.ts:99
globTool
• Const globTool: FunctionTool
GlobTool instance — register with Robota agent tools registry.
Defined in
packages/agent-tools/src/builtins/glob-tool.ts:100
grepTool
• Const grepTool: FunctionTool
GrepTool instance — register with Robota agent tools registry.
Defined in
packages/agent-tools/src/builtins/grep-tool.ts:225
readTool
• Const readTool: FunctionTool
ReadTool instance — register with Robota agent tools registry.
Defined in
packages/agent-tools/src/builtins/read-tool.ts:136
webFetchTool
• Const webFetchTool: FunctionTool
Defined in
packages/agent-tools/src/builtins/web-fetch-tool.ts:101
webSearchTool
• Const webSearchTool: FunctionTool
Defined in
packages/agent-tools/src/builtins/web-search-tool.ts:98
writeTool
• Const writeTool: FunctionTool
WriteTool instance — register with Robota agent tools registry.
Defined in
packages/agent-tools/src/builtins/write-tool.ts:45
Functions
createFunctionTool
▸ createFunctionTool(name, description, parameters, fn): FunctionTool
Helper function to create a function tool from a simple function
Parameters
| Name | Type |
|---|---|
name | string |
description | string |
parameters | Object |
parameters.type | "object" |
parameters.properties | Record<string, IParameterSchema> |
parameters.required? | string[] |
fn | TToolExecutor |
Returns
Defined in
packages/agent-tools/src/implementations/function-tool.ts:251
createZodFunctionTool
▸ createZodFunctionTool(name, description, zodSchema, fn): FunctionTool
Helper function to create a function tool from Zod schema
Parameters
| Name | Type |
|---|---|
name | string |
description | string |
zodSchema | IZodSchema |
fn | TToolExecutor |
Returns
Defined in
packages/agent-tools/src/implementations/function-tool.ts:269
zodToJsonSchema
▸ zodToJsonSchema(schema, options?): IToolSchema["parameters"]
Convert Zod schema to JSON Schema format with safe undefined handling
Parameters
| Name | Type |
|---|---|
schema | IZodSchema |
options | ISchemaConversionOptions |
Returns
IToolSchema["parameters"]
Defined in
packages/agent-tools/src/implementations/function-tool/schema-converter.ts:25
createOpenAPITool
▸ createOpenAPITool(config): OpenAPITool
Factory function to create OpenAPI tools from specification
Parameters
| Name | Type |
|---|---|
config | IOpenAPIToolConfig |
Returns
Defined in
packages/agent-tools/src/implementations/openapi-tool.ts:449