GETAGENTTOOL

Overview

The GETAGENTTOOL workflow application allows you to extract a tool and its information from a list of tools that can be provided by an application such as OPENAICHAT.

How it works

  • The application allows you to extract the name, identifier, and parameters of the tool being manipulated.

  • It's also possible to extract the parameters one by one by specifying the name of the parameter directly in the name.

Parameters

ParameterTypeDirectionDescription

TOOLS

TEXT

IN

Required Table of tools in JSON format

TOOL_INDEX

NUMERIC

IN

Array index for tool extraction; defaults to 0

TOOL

TEXT

OUT

Extracted tool in JSON format

TOOL_NAME

TEXT

OUT

Name of tool

TOOL_ID

TEXT

OUT

ID of tool

TOOL_PARAMETERS

TEXT

OUT

Tool settings in JSON format

propertyToExtract

TEXT

OUT

Property to extract in settings

Example

IN

ParameterValue

TOOLS

[ { "name":"GET_STOCK_INFORMATION", "id":"call_Vuc2Ga8jP7vUksxG9C0fwpY8", "parameters": { "product_name": "Vis", "serial_number": "V45645" } }, { "name": "GET_STOCK_INFORMATION", "id": "call_nq3SCVUk0FjAHCeqOZGNXpC8", "parameters": { "product_name": "Vis", "serial_number": "V45645" } } ]

TOOL_INDEX

1

OUT

ParameterValue

TOOL

{ "name": "GET_STOCK_INFORMATION", "id": "call_nq3SCVUk0FjAHCeqOZGNXpC8", "parameters": { "product_name": "Vis", "serial_number": "V45645" } }

TOOL_NAME

GET_STOCK_INFORMATION

TOOL_ID

call_nq3SCVUk0FjAHCeqOZGNXpC8

TOOL_PARAMETERS

{ "product_name": "Vis", "serial_number": "V45645" }

serial_number

V45645

product_name

Vis

Last updated