plano/demos/acm_k8s/arch_config.yaml
2025-01-17 18:24:59 -08:00

89 lines
2.6 KiB
YAML

version: "0.1-beta"
listener:
address: 0.0.0.0
port: 10000
message_format: huggingface
connect_timeout: 0.005s
overrides:
# confidence threshold for prompt target intent matching
prompt_target_intent_matching_threshold: 0.6
endpoints:
acm_service:
# endpoint: host.docker.internal:8001
endpoint: host.docker.internal:18083
connect_timeout: 0.005s
llm_providers:
- name: gpt-4o-mini
access_key: $OPENAI_API_KEY
provider: openai
model: gpt-4o-mini
default: true
system_prompt: |
You are a helpful assistant.
prompt_guards:
input_guards:
jailbreak:
on_exception:
message: Looks like you're curious about my abilities, but I can only provide assistance for weather forecasting.
prompt_targets:
- name: listAllClusterDetails
description: Query your clusters for more details.
endpoint:
http_method: GET
name: acm_service
# path: /cluster.open-cluster-management.io/v1/managedclusters
path: /apis/cluster.open-cluster-management.io/v1/managedclusters
system_prompt: |
You are a helpful assistant. You are given response in json. Only show name of the cluster and its status.
- name: getClusterDetails
description: Query a single cluster for more details
endpoint:
http_method: GET
name: acm_service
path: /cluster.open-cluster-management.io/v1/managedclusters/{cluster_name}
parameters:
- name: cluster_name
in_path: true
description: The name of the cluster to retrieve
required: true
type: str
- name: default_target
default: true
description: This is the default target for all unmatched prompts.
system_prompt: |
You are a helpful assistant that can help answer ACM queries. Following is a list of available commands user can ask. Based on question asked, tell me which command you want to execute.
- name: listAllClusterDetails
description: Query your clusters for more details.
endpoint:
http_method: GET
name: acm_service
path: /cluster.open-cluster-management.io/v1/managedclusters
- name: getClusterDetails
description: Query a single cluster for more details
endpoint:
http_method: GET
name: acm_service
path: /cluster.open-cluster-management.io/v1/managedclusters/{cluster_name}
parameters:
- name: cluster_name
in_path: true
description: The name of the cluster to retrieve
required: true
type: str
auto_llm_dispatch_on_response: true
tracing:
random_sampling: 100
trace_arch_internal: true