Interface Tool<TContext>

All Known Subinterfaces:
ApplyPatchTool, ComputerTool<TContext,TComputer>, FunctionTool<TContext,TInput,TOutput>, ShellTool
All Known Implementing Classes:
HostedTool

public interface Tool<TContext>
Tool

Base interface for all tool types. In TypeScript this is a union: FunctionTool | ComputerTool | ShellTool | ApplyPatchTool | HostedTool

Source: https://github.com/openai/openai-agents-js/blob/main/packages/agents-core/src/tool.ts

  • Method Details

    • getType

      String getType()
    • getName

      String getName()
    • getDescription

      String getDescription()