diff --git a/README.md b/README.md index b8f64d95..c58205c4 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/crates/common/src/configuration.rs b/crates/common/src/configuration.rs index 7486e3d9..507ab569 100644 --- a/crates/common/src/configuration.rs +++ b/crates/common/src/configuration.rs @@ -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, } diff --git a/demos/currency_exchange/arch_config.yaml b/demos/currency_exchange/arch_config.yaml index 397a30e3..b7d1aaed 100644 --- a/demos/currency_exchange/arch_config.yaml +++ b/demos/currency_exchange/arch_config.yaml @@ -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 diff --git a/demos/hr_agent/arch_config.yaml b/demos/hr_agent/arch_config.yaml index cde49627..3685d32b 100644 --- a/demos/hr_agent/arch_config.yaml +++ b/demos/hr_agent/arch_config.yaml @@ -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 diff --git a/demos/insurance_agent/arch_config.yaml b/demos/insurance_agent/arch_config.yaml index 63997f72..3b3b27d1 100644 --- a/demos/insurance_agent/arch_config.yaml +++ b/demos/insurance_agent/arch_config.yaml @@ -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 diff --git a/demos/network_agent/arch_config.yaml b/demos/network_agent/arch_config.yaml index 7b0d1903..1d567e53 100644 --- a/demos/network_agent/arch_config.yaml +++ b/demos/network_agent/arch_config.yaml @@ -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 diff --git a/demos/weather_forecast/arch_config.yaml b/demos/weather_forecast/arch_config.yaml index 35a3f430..6ae75df6 100644 --- a/demos/weather_forecast/arch_config.yaml +++ b/demos/weather_forecast/arch_config.yaml @@ -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 diff --git a/demos/weather_forecast_signoz/arch_config.yaml b/demos/weather_forecast_signoz/arch_config.yaml index 787a71b3..1939f830 100644 --- a/demos/weather_forecast_signoz/arch_config.yaml +++ b/demos/weather_forecast_signoz/arch_config.yaml @@ -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 diff --git a/docs/source/guides/includes/arch_config.yaml b/docs/source/guides/includes/arch_config.yaml index 52496afd..e22f45ca 100644 --- a/docs/source/guides/includes/arch_config.yaml +++ b/docs/source/guides/includes/arch_config.yaml @@ -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