use GET as default http method

This commit is contained in:
Adil Hafeez 2024-12-06 00:48:11 -08:00
parent ea086b6ff9
commit 9a1dbc60b8
9 changed files with 16 additions and 5 deletions

View file

@ -101,7 +101,6 @@ prompt_targets:
required: true
type: str
in_path: true
http_method: GET
endpoint:
name: frankfurther_api
path: /v1/latest?base=USD&symbols={currency_symbol}
@ -110,7 +109,6 @@ prompt_targets:
- name: get_supported_currencies
description: Get list of supported currencies for conversion
http_method: GET
endpoint:
name: frankfurther_api
path: /v1/currencies

View file

@ -202,9 +202,9 @@ pub struct EndpointDetails {
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash, Default)]
pub enum HttpMethod {
#[default]
#[serde(rename = "GET")]
Get,
#[default]
#[serde(rename = "POST")]
Post,
}

View file

@ -30,7 +30,6 @@ prompt_targets:
required: true
type: str
in_path: true
http_method: GET
endpoint:
name: frankfurther_api
path: /v1/latest?base=USD&symbols={currency_symbol}
@ -39,7 +38,6 @@ prompt_targets:
- name: get_supported_currencies
description: Get list of supported currencies for conversion
http_method: GET
endpoint:
name: frankfurther_api
path: /v1/currencies

View file

@ -31,6 +31,7 @@ system_prompt: |
prompt_targets:
- name: workforce
description: Get workforce data like headcount and satisfaction levels by region and staffing type
http_method: POST
endpoint:
name: app_server
path: /agent/workforce
@ -49,6 +50,7 @@ prompt_targets:
required: false
description: the snapshot day for which you want workforce data.
- name: slack_message
http_method: POST
endpoint:
name: app_server
path: /agent/slack_message

View file

@ -26,6 +26,7 @@ endpoints:
prompt_targets:
- name: policy_qa
http_method: POST
endpoint:
name: app_server
path: /policy/qa
@ -34,6 +35,7 @@ prompt_targets:
- name: get_policy_coverage
description: Retrieve the coverage details for a given policy type (car, boat, house, motorcycle).
http_method: POST
endpoint:
name: app_server
path: /policy/coverage
@ -45,6 +47,7 @@ prompt_targets:
required: true
- name: initiate_policy
http_method: POST
endpoint:
name: app_server
path: /policy/initiate
@ -61,6 +64,7 @@ prompt_targets:
required: true
- name: update_claim
http_method: POST
endpoint:
name: app_server
path: /policy/claim
@ -76,6 +80,7 @@ prompt_targets:
required: false
- name: update_deductible
http_method: POST
endpoint:
name: app_server
path: /policy/deductible

View file

@ -19,6 +19,7 @@ system_prompt: |
prompt_targets:
- name: device_summary
description: Retrieve network statistics for specific devices within a time range
http_method: POST
endpoint:
name: app_server
path: /agent/device_summary
@ -33,6 +34,7 @@ prompt_targets:
default: "7"
- name: reboot_devices
description: Reboot a list of devices
http_method: POST
endpoint:
name: app_server
path: /agent/device_reboot

View file

@ -57,6 +57,7 @@ prompt_targets:
description: the temperature unit, e.g., Celsius and Fahrenheit
type: str
default: Fahrenheit
http_method: POST
endpoint:
name: weather_forecast_service
path: /weather
@ -64,6 +65,7 @@ prompt_targets:
- name: default_target
default: true
description: This is the default target for all unmatched prompts.
http_method: POST
endpoint:
name: weather_forecast_service
path: /default_target

View file

@ -51,6 +51,7 @@ prompt_targets:
description: the temperature unit, e.g., Celsius and Fahrenheit
type: str
default: Fahrenheit
http_method: POST
endpoint:
name: weather_forecast_service
path: /weather
@ -58,6 +59,7 @@ prompt_targets:
- name: default_target
default: true
description: This is the default target for all unmatched prompts.
http_method: POST
endpoint:
name: weather_forecast_service
path: /default_target

View file

@ -28,6 +28,7 @@ prompt_targets:
- name: information_extraction
default: true
description: handel all scenarios that are question and answer in nature. Like summarization, information extraction, etc.
http_method: POST
endpoint:
name: app_server
path: /agent/summary
@ -38,6 +39,7 @@ prompt_targets:
- name: reboot_network_device
description: Perform device operations like rebooting a device.
http_method: POST
endpoint:
name: app_server
path: /agent/action