diff --git a/build_with_arch/agent.html b/build_with_arch/agent.html index 5c82116f..21dd9d25 100755 --- a/build_with_arch/agent.html +++ b/build_with_arch/agent.html @@ -174,49 +174,64 @@ is how you would go about enabling this scenario with Arch:
1version: v0.1
- 2
- 3listen:
- 4 address: 0.0.0.0 # or 127.0.0.1
- 5 port: 10000
- 6 # Defines how Arch should parse the content from application/json or text/pain Content-type in the http request
- 7 message_format: huggingface
- 8
- 9# Centralized way to manage LLMs, manage keys, retry logic, failover and limits in a central way
-10llm_providers:
-11 - name: OpenAI
-12 provider: openai
-13 access_key: OPENAI_API_KEY
-14 model: gpt-4o
-15 default: true
-16 stream: true
-17
-18# default system prompt used by all prompt targets
-19system_prompt: You are a network assistant that just offers facts; not advice on manufacturers or purchasing decisions.
-20
-21prompt_targets:
-22 - name: reboot_devices
-23 description: Reboot specific devices or device groups
-24
-25 path: /agent/device_reboot
-26 parameters:
-27 - name: device_ids
-28 type: list
-29 description: A list of device identifiers (IDs) to reboot.
-30 required: false
-31 - name: device_group
-32 type: str
-33 description: The name of the device group to reboot
-34 required: false
-35
-36# Arch creates a round-robin load balancing between different endpoints, managed via the cluster subsystem.
-37endpoints:
-38 app_server:
-39 # value could be ip address or a hostname with port
-40 # this could also be a list of endpoints for load balancing
-41 # for example endpoint: [ ip1:port, ip2:port ]
-42 endpoint: 127.0.0.1:80
-43 # max time to wait for a connection to be established
-44 connect_timeout: 0.005s
+ 2listener:
+ 3 address: 127.0.0.1
+ 4 port: 8080 #If you configure port 443, you'll need to update the listener with tls_certificates
+ 5 message_format: huggingface
+ 6
+ 7# Centralized way to manage LLMs, manage keys, retry logic, failover and limits in a central way
+ 8llm_providers:
+ 9 - name: OpenAI
+10 provider: openai
+11 access_key: OPENAI_API_KEY
+12 model: gpt-4o
+13 default: true
+14
+15# default system prompt used by all prompt targets
+16system_prompt: |
+17 You are a network assistant that just offers facts; not advice on manufacturers or purchasing decisions.
+18
+19prompt_targets:
+20 - name: network_qa
+21 endpoint:
+22 name: app_server
+23 path: /agent/network_summary
+24 description: Handle general Q/A related to networking.
+25 default: true
+26 - name: reboot_devices
+27 description: Reboot specific devices or device groups
+28 endpoint:
+29 name: app_server
+30 path: /agent/device_reboot
+31 parameters:
+32 - name: device_ids
+33 type: list
+34 description: A list of device identifiers (IDs) to reboot.
+35 required: true
+36 - name: device_summary
+37 description: Retrieve statistics for specific devices within a time range
+38 endpoint:
+39 name: app_server
+40 path: /agent/device_summary
+41 parameters:
+42 - name: device_ids
+43 type: list
+44 description: A list of device identifiers (IDs) to retrieve statistics for.
+45 required: true # device_ids are required to get device statistics
+46 - name: time_range
+47 type: int
+48 description: Time range in days for which to gather device statistics. Defaults to 7.
+49 default: "7"
+50
+51# Arch creates a round-robin load balancing between different endpoints, managed via the cluster subsystem.
+52endpoints:
+53 app_server:
+54 # value could be ip address or a hostname with port
+55 # this could also be a list of endpoints for load balancing
+56 # for example endpoint: [ ip1:port, ip2:port ]
+57 endpoint: host.docker.internal:18083
+58 # max time to wait for a connection to be established
+59 connect_timeout: 0.005s
1version: v0.1
- 2
- 3listen:
- 4 address: 0.0.0.0 # or 127.0.0.1
- 5 port: 10000
- 6 # Defines how Arch should parse the content from application/json or text/pain Content-type in the http request
- 7 message_format: huggingface
- 8
- 9# Centralized way to manage LLMs, manage keys, retry logic, failover and limits in a central way
-10llm_providers:
-11 - name: OpenAI
-12 provider: openai
-13 access_key: OPENAI_API_KEY
-14 model: gpt-4o
-15 default: true
-16 stream: true
-17
-18# default system prompt used by all prompt targets
-19system_prompt: You are a network assistant that just offers facts; not advice on manufacturers or purchasing decisions.
-20
-21prompt_targets:
-22 - name: reboot_devices
-23 description: Reboot specific devices or device groups
-24
-25 path: /agent/device_reboot
-26 parameters:
-27 - name: device_ids
-28 type: list
-29 description: A list of device identifiers (IDs) to reboot.
-30 required: false
-31 - name: device_group
-32 type: str
-33 description: The name of the device group to reboot
-34 required: false
-35
-36# Arch creates a round-robin load balancing between different endpoints, managed via the cluster subsystem.
-37endpoints:
-38 app_server:
-39 # value could be ip address or a hostname with port
-40 # this could also be a list of endpoints for load balancing
-41 # for example endpoint: [ ip1:port, ip2:port ]
-42 endpoint: 127.0.0.1:80
-43 # max time to wait for a connection to be established
-44 connect_timeout: 0.005s
+ 2listener:
+ 3 address: 127.0.0.1
+ 4 port: 8080 #If you configure port 443, you'll need to update the listener with tls_certificates
+ 5 message_format: huggingface
+ 6
+ 7# Centralized way to manage LLMs, manage keys, retry logic, failover and limits in a central way
+ 8llm_providers:
+ 9 - name: OpenAI
+10 provider: openai
+11 access_key: OPENAI_API_KEY
+12 model: gpt-4o
+13 default: true
+14
+15# default system prompt used by all prompt targets
+16system_prompt: |
+17 You are a network assistant that just offers facts; not advice on manufacturers or purchasing decisions.
+18
+19prompt_targets:
+20 - name: network_qa
+21 endpoint:
+22 name: app_server
+23 path: /agent/network_summary
+24 description: Handle general Q/A related to networking.
+25 default: true
+26 - name: reboot_devices
+27 description: Reboot specific devices or device groups
+28 endpoint:
+29 name: app_server
+30 path: /agent/device_reboot
+31 parameters:
+32 - name: device_ids
+33 type: list
+34 description: A list of device identifiers (IDs) to reboot.
+35 required: true
+36 - name: device_summary
+37 description: Retrieve statistics for specific devices within a time range
+38 endpoint:
+39 name: app_server
+40 path: /agent/device_summary
+41 parameters:
+42 - name: device_ids
+43 type: list
+44 description: A list of device identifiers (IDs) to retrieve statistics for.
+45 required: true # device_ids are required to get device statistics
+46 - name: time_range
+47 type: int
+48 description: Time range in days for which to gather device statistics. Defaults to 7.
+49 default: "7"
+50
+51# Arch creates a round-robin load balancing between different endpoints, managed via the cluster subsystem.
+52endpoints:
+53 app_server:
+54 # value could be ip address or a hostname with port
+55 # this could also be a list of endpoints for load balancing
+56 # for example endpoint: [ ip1:port, ip2:port ]
+57 endpoint: host.docker.internal:18083
+58 # max time to wait for a connection to be established
+59 connect_timeout: 0.005s