* updated all demo READMes and minor doc changes * minor typo fixes * updated main Readme * fixed README and docs * fixed README and docs --------- Co-authored-by: Salman Paracha <salmanparacha@MacBook-Pro-261.local>
2.3 KiB
Network Agent Demo
This demo illustrates how Arch can be used to perform function calling with network-related tasks. In this demo, you act as a network assistant that provides factual information, without offering advice on manufacturers or purchasing decisions.
The assistant can perform several key operations, including rebooting devices, answering general networking questions, and retrieving device statistics. By default, the system prompt ensures that the assistant's responses are factual and neutral.
Available Functions:
-
Reboot Devices: Allows rebooting specific devices or device groups, with an optional time range for scheduling the reboot.
- Parameters:
device_ids(required): A list of device IDs to reboot.time_range(optional): Specifies the time range in days, defaulting to 7 days if not provided.
- Parameters:
-
Network Q/A: Handles general Q&A related to networking. This function is the default target for general networking queries.
-
Device Summary: Retrieves statistics for specific devices within a given time range.
- Parameters:
device_ids(required): A list of device IDs for which statistics will be retrieved.time_range(optional): Specifies the time range in days for gathering statistics, with a default of 7 days.
- Parameters:
Starting the demo
- Create
.envfile and set OpenAI key using env varOPENAI_API_KEY - Start Arch
archgw up [path to arch_config.yaml] - Start Network Agent
docker compose up - Navigate to http://localhost:18080/
- You can type in queries like "show me device statics for the past 7 days"
Observability
Arch gateway publishes stats endpoint at http://localhost:19901/stats. In this demo we are using grafana to pull stats from arch and we are using grafana to visalize the stats in dashboard. To see grafana dashboard follow instructions below,
- Start grafana and prometheus using following command
docker compose --profile monitoring up - Navigate to http://localhost:3000/ to open grafana UI (use admin/grafana as credentials)
- From grafana left nav click on dashboards and select "Arch" to view the arch gateway stats
Here is sample interaction,