Package version:

Represents a set of tools with their definitions and resources.

Constructors

Properties

toolDefinitions: {} = []

A list of tool definitions that have been added to the tool set.

toolResources: ToolResources = {}

A collection of resources associated with the tools in the tool set.

Methods

  • Adds a code interpreter tool to the tool set.

    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

    • Adds a connection tool to the tool set.

      Parameters

      • toolType: connectionToolType

        The type of the connection tool.

      • connectionIds: {}

        A list of the IDs of the connections to use.

        Returns {
            definition: ToolDefinition;
        }

        An object containing the definition for the connection tool

      • Adds a file search tool to the tool set.

        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

        • Adds sharepoint grounding search tool to the tool set.

          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