add precommit check (#97)

* add precommit check

* remove check

* Revert "remove check"

This reverts commit 9987b62b9b.

* fix checks

* fix whitespace errors
This commit is contained in:
Adil Hafeez 2024-09-30 14:54:01 -07:00 committed by GitHub
parent 1e61452310
commit 4182879717
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 292 additions and 312 deletions

View file

@ -6,8 +6,8 @@ listen:
system_prompts:
- name: network_assistant
content: You are a network assistant that just offers facts about the operational health of the network
llm_providers:
llm_providers:
- name: "OpenAI"
access_key: $OPEN_AI_KEY
model: gpt-4o
@ -16,13 +16,13 @@ llm_providers:
prompt_targets:
- name: reboot_devices
description: >
This prompt target handles user requests to reboot devices.
This prompt target handles user requests to reboot devices.
It ensures that when users request to reboot specific devices or device groups, the system processes the reboot commands accurately.
**Examples of user prompts:**
- "Please reboot device 12345."
- "Restart all devices in tenant group tenant-XYZ
- "Restart all devices in tenant group tenant-XYZ
- "I need to reboot devices A, B, and C."
path: /agent/device_reboot
@ -38,4 +38,4 @@ prompt_targets:
prompt_endpoints:
- "http://127.0.0.2"
- "http://127.0.0.1"
- "http://127.0.0.1"

View file

@ -72,7 +72,7 @@ error_target:
name: "error_handler"
path: "/errors"
tracing: 100 #sampling rate. Note by default Arch works on OpenTelemetry compatible tracing.
tracing: 100 #sampling rate. Note by default Arch works on OpenTelemetry compatible tracing.
intent-detection-threshold-override: 0.60 # By default Arch uses an NLI + embedding approach to match an incomming prompt to a prompt target.
# The intent matching threshold is kept at 0.80, you can overide this behavior if you would like

View file

@ -6,8 +6,8 @@ listener:
system_prompts:
- name: network_assistant
content: You are a network assistant that just offers facts about the operational health of the network
llm_providers:
llm_providers:
- name: "OpenAI"
access_key: $OPEN_AI_KEY
model: gpt-4o
@ -15,8 +15,8 @@ llm_providers:
prompt_targets:
- name: get_device_statistics
description: >
This prompt target ensures that when users request device-related statistics, the system accurately retrieves and presents the relevant data
description: >
This prompt target ensures that when users request device-related statistics, the system accurately retrieves and presents the relevant data
based on the specified devices and time range. Examples of user prompts, include:
- "Show me the performance stats for device 12345 over the past week."
@ -37,4 +37,4 @@ prompt_targets:
prompt_endpoints:
- "http://127.0.0.2"
- "http://127.0.0.1"
- "http://127.0.0.1"