Passing JSON Parameters

To send JSON parameters in GET and POST requests, define the JSON parameters such as path, action and so on as shown below:

Parameter Name Definition
Path Specify the URI published by the LLM provider
Action Supported POST and GET
requestPayload Input payload published by the LLM provider need to be enclosed within this parameter
Prompt Dynamic texts sent by the client (Siebel, Postman, and so on) would be substituted
responseField

Response text parameter name, can differ across the provider + model combinations

Example: For OpenAI, the response field is “content.” This field is used to display the response in the UI.

Here's an example is shown here for outbound calls in JSON format for a sample Model Provider:

JSON File Name JSON File Contents
google_gemini-1.5-flash-001.json
{ 
"path": "https://us-central1- aiplatform.googleapis.com/v1/projects/suryageminiproject1/locations/us-central1/
publishers/google/models/gemini-1.5-flash-001:generateContent", 
"action": "POST", "responseField": 
"text", "requestPayload": { "contents": [ { "role": "user", "parts": [ { "text": "<prompt>" } ] } ] }}