move method to endpoint section and use Agent AI app name

This commit is contained in:
Adil Hafeez 2024-12-06 11:54:50 -08:00
parent c40a6d66c8
commit 428227d98e
11 changed files with 36 additions and 32 deletions

View file

@ -46,3 +46,7 @@ endpoints:
frankfurther_api:
endpoint: api.frankfurter.dev:443
protocol: https
tracing:
random_sampling: 100
trace_arch_internal: true

View file

@ -31,10 +31,10 @@ 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
http_method: POST
parameters:
- name: staffing_type
type: str
@ -50,10 +50,10 @@ 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
http_method: POST
description: sends a slack message on a channel
parameters:
- name: slack_message

View file

@ -26,19 +26,19 @@ endpoints:
prompt_targets:
- name: policy_qa
http_method: POST
endpoint:
name: app_server
path: /policy/qa
http_method: POST
description: Handle general Q/A related to insurance.
default: true
- 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
http_method: POST
parameters:
- name: policy_type
type: str
@ -47,10 +47,10 @@ prompt_targets:
required: true
- name: initiate_policy
http_method: POST
endpoint:
name: app_server
path: /policy/initiate
http_method: POST
description: Start a policy coverage for car, boat, motorcycle or house.
parameters:
- name: policy_type
@ -64,10 +64,10 @@ prompt_targets:
required: true
- name: update_claim
http_method: POST
endpoint:
name: app_server
path: /policy/claim
http_method: POST
description: Update the notes on the claim
parameters:
- name: claim_id
@ -80,10 +80,10 @@ prompt_targets:
required: false
- name: update_deductible
http_method: POST
endpoint:
name: app_server
path: /policy/deductible
http_method: POST
description: Update the deductible amount for a specific policy coverage.
parameters:
- name: policy_id

View file

@ -19,10 +19,10 @@ 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
http_method: POST
parameters:
- name: device_ids
type: list
@ -34,10 +34,10 @@ prompt_targets:
default: "7"
- name: reboot_devices
description: Reboot a list of devices
http_method: POST
endpoint:
name: app_server
path: /agent/device_reboot
http_method: POST
parameters:
- name: device_ids
type: list

View file

@ -57,18 +57,18 @@ 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
http_method: POST
- 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
http_method: POST
system_prompt: |
You are a helpful assistant! Summarize the user's request and provide a helpful response.
# if it is set to false arch will send response that it received from this prompt target to the user

View file

@ -51,18 +51,18 @@ 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
http_method: POST
- 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
http_method: POST
system_prompt: |
You are a helpful assistant! Summarize the user's request and provide a helpful response.
# if it is set to false arch will send response that it received from this prompt target to the user