Package version:

Utility class for creating various tools.

Constructors

Methods

  • Creates a code interpreter tool

    Parameters

    • OptionalfileIds: {}

      A list of file IDs made available to the code_interpreter tool. There can be a maximum of 20 files associated with the tool.

      • OptionaldataSources: any

        The data sources to be used. This option is mutually exclusive with fileIds.

      Returns {
          definition: CodeInterpreterToolDefinition;
          resources: ToolResources;
      }

      An object containing the definition and resources for the code interpreter tool.

    • Creates a file search tool

      Parameters

      • OptionalvectorStoreIds: {}

        The ID of the vector store attached to this agent. There can be a maximum of 1 vector store attached to the agent.

        • OptionalvectorStores: any

          The list of vector store configuration objects from Azure. This list is limited to one element. The only element of this list contains the list of azure asset IDs used by the search tool.

        • OptionaldefinitionDetails: FileSearchToolDefinitionDetails

          The input definition information for a file search tool as used to configure an agent.

        Returns {
            definition: FileSearchToolDefinition;
            resources: ToolResources;
        }

        An object containing the definition and resources for the file search tool

      • Creates a sharepoint grounding search tool

        Parameters

        • connectionId: string

          The ID of the sharepoint search connection.

        Returns {
            definition: SharepointToolDefinition;
        }

        An object containing the definition and resources for the sharepoint grounding search tool