mirror of
https://github.com/katanemo/plano.git
synced 2026-05-09 07:42:43 +02:00
archgw cli (#117)
* initial commit of the insurange agent demo, with the CLI tool * committing the cli * fixed some field descriptions for generate-prompt-targets * CLI works with buil, up and down commands. Function calling example works stand-alone * fixed README to install archgw cli * fixing based on feedback * fixing based on feedback --------- Co-authored-by: Salman Paracha <salmanparacha@MacBook-Pro-261.local>
This commit is contained in:
parent
af018e5fd8
commit
dc57f119a0
30 changed files with 1087 additions and 203 deletions
89
demos/insurance_agent/arch_confirg.yaml
Normal file
89
demos/insurance_agent/arch_confirg.yaml
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
version: "0.1-beta"
|
||||
listener:
|
||||
address: 127.0.0.1
|
||||
port: 8080 #If you configure port 443, you'll need to update the listener with tls_certificates
|
||||
message_format: huggingface
|
||||
|
||||
system_prompt: |
|
||||
You are an insurance assistant that just offers guidance related to car, boat, rental and home insurnace only.
|
||||
|
||||
llm_providers:
|
||||
- name: "OpenAI"
|
||||
access_key: $OPEN_AI_KEY
|
||||
model: gpt-4o
|
||||
default: true
|
||||
|
||||
# Arch creates a round-robin load balancing between different endpoints, managed via the cluster subsystem.
|
||||
endpoints:
|
||||
app_server:
|
||||
# value could be ip address or a hostname with port
|
||||
# this could also be a list of endpoints for load balancing
|
||||
# for example endpoint: [ ip1:port, ip2:port ]
|
||||
endpoint: "127.0.0.1:80"
|
||||
# max time to wait for a connection to be established
|
||||
connect_timeout: 500ms
|
||||
|
||||
prompt_targets:
|
||||
- name: policy_qa
|
||||
endpoint:
|
||||
name: app_server
|
||||
path: /policy/qa
|
||||
description: "This method handles Q/A related to general issues in insurance. It forwards the conversation to the OpenAI client via a local proxy and returns the response."
|
||||
default: true
|
||||
|
||||
- name: get_policy_coverage
|
||||
description: Retrieve the coverage details for a given policy type (car, boat, house, motorcycle).
|
||||
endpoint:
|
||||
name: app_server
|
||||
path: /policy/coverage
|
||||
parameters:
|
||||
- name: policy_type
|
||||
type: str
|
||||
description: The
|
||||
default: 'car'
|
||||
required: true
|
||||
|
||||
- name: initiate_policy
|
||||
endpoint:
|
||||
name: app_server
|
||||
path: /policy/initiate
|
||||
description: Initiate policy coverage for a car, boat, house, or motorcycle.
|
||||
parameters:
|
||||
- name: policy_type
|
||||
type: str
|
||||
description: Field definition from Pydantic model. Requires fixes PolicyRequest
|
||||
required: true
|
||||
- name: details
|
||||
type: Unknown
|
||||
description: Field definition from Pydantic model. Requires fixes PolicyRequest
|
||||
required: false
|
||||
|
||||
- name: update_claim
|
||||
endpoint:
|
||||
name: app_server
|
||||
path: /policy/claim
|
||||
description: Update the status or details of a claim.
|
||||
parameters:
|
||||
- name: claim_id
|
||||
type: int
|
||||
description: Field definition from Pydantic model. Requires fixes ClaimUpdate
|
||||
required: true
|
||||
- name: update
|
||||
type: str
|
||||
description: Field definition from Pydantic model. Requires fixes ClaimUpdate
|
||||
required: false
|
||||
|
||||
- name: update_deductible
|
||||
endpoint:
|
||||
name: app_server
|
||||
path: /policy/deductible
|
||||
description: Update the deductible amount for a specific policy.
|
||||
parameters:
|
||||
- name: policy_id
|
||||
type: int
|
||||
description: Field definition from Pydantic model. Requires fixes DeductibleUpdate
|
||||
required: true
|
||||
- name: new_deductible
|
||||
type: float
|
||||
description: Field definition from Pydantic model. Requires fixes DeductibleUpdate
|
||||
required: false
|
||||
Loading…
Add table
Add a link
Reference in a new issue