Workflow Application: GETAGENTTOOL usage

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.

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

Name Type Direction Description
TOOLS TEXT IN Table of tools in JSON format (required)
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

Parameter Value
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

Parameter Value
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

Hi team,
What’s the difference between this application and JSONTODATA?
Is this specifically for JSON objects that have “name”, “id”, and “parameters” as keys?

1 Like

Hi,

__JSONPath is also a working method, query the peremeters of a JSON.
this scheme ID-NAME-PARAMETERS is the only way to get input?