mirror of
https://github.com/katanemo/plano.git
synced 2026-06-26 15:39:40 +02:00
bring back prompt targets
This commit is contained in:
parent
91b0338200
commit
c3ace314ce
1 changed files with 39 additions and 4 deletions
|
|
@ -1,22 +1,26 @@
|
||||||
|
|
||||||
# Arch Gateway configuration version
|
# Arch Gateway configuration version
|
||||||
version: v0.3.0
|
version: v0.3.0
|
||||||
|
|
||||||
|
|
||||||
# External HTTP agents - API type is controlled by request path (/v1/responses, /v1/messages, /v1/chat/completions)
|
# External HTTP agents - API type is controlled by request path (/v1/responses, /v1/messages, /v1/chat/completions)
|
||||||
agents:
|
agents:
|
||||||
- id: weather_agent
|
- id: weather_agent # Example agent for weather
|
||||||
url: http://host.docker.internal:10510
|
url: http://host.docker.internal:10510
|
||||||
|
|
||||||
- id: flight_agent
|
- id: flight_agent # Example agent for flights
|
||||||
url: http://host.docker.internal:10520
|
url: http://host.docker.internal:10520
|
||||||
|
|
||||||
|
|
||||||
# MCP filters applied to requests/responses (e.g., input validation, query rewriting)
|
# MCP filters applied to requests/responses (e.g., input validation, query rewriting)
|
||||||
filters:
|
filters:
|
||||||
- id: input_guards
|
- id: input_guards # Example filter for input validation
|
||||||
url: http://host.docker.internal:10500
|
url: http://host.docker.internal:10500
|
||||||
# type: mcp (default)
|
# type: mcp (default)
|
||||||
# transport: streamable-http (default)
|
# transport: streamable-http (default)
|
||||||
# tool: input_guards (default - same as filter id)
|
# tool: input_guards (default - same as filter id)
|
||||||
|
|
||||||
|
|
||||||
# LLM provider configurations with API keys and model routing
|
# LLM provider configurations with API keys and model routing
|
||||||
model_providers:
|
model_providers:
|
||||||
- model: openai/gpt-4o
|
- model: openai/gpt-4o
|
||||||
|
|
@ -32,6 +36,7 @@ model_providers:
|
||||||
- model: mistral/ministral-3b-latest
|
- model: mistral/ministral-3b-latest
|
||||||
access_key: $MISTRAL_API_KEY
|
access_key: $MISTRAL_API_KEY
|
||||||
|
|
||||||
|
|
||||||
# Model aliases - use friendly names instead of full provider model names
|
# Model aliases - use friendly names instead of full provider model names
|
||||||
model_aliases:
|
model_aliases:
|
||||||
fast-llm:
|
fast-llm:
|
||||||
|
|
@ -40,7 +45,8 @@ model_aliases:
|
||||||
smart-llm:
|
smart-llm:
|
||||||
target: gpt-4o
|
target: gpt-4o
|
||||||
|
|
||||||
# HTTP listeners - entry points for agent routing and direct LLM access
|
|
||||||
|
# HTTP listeners - entry points for agent routing, prompt targets, and direct LLM access
|
||||||
listeners:
|
listeners:
|
||||||
# Agent listener for routing requests to multiple agents
|
# Agent listener for routing requests to multiple agents
|
||||||
- type: agent
|
- type: agent
|
||||||
|
|
@ -60,6 +66,14 @@ listeners:
|
||||||
address: 0.0.0.0
|
address: 0.0.0.0
|
||||||
port: 12000
|
port: 12000
|
||||||
|
|
||||||
|
# Prompt listener for function calling (for prompt_targets)
|
||||||
|
- type: prompt
|
||||||
|
name: prompt_function_listener
|
||||||
|
address: 0.0.0.0
|
||||||
|
port: 10000
|
||||||
|
# This listener is used for prompt_targets and function calling
|
||||||
|
|
||||||
|
|
||||||
# Reusable service endpoints
|
# Reusable service endpoints
|
||||||
endpoints:
|
endpoints:
|
||||||
app_server:
|
app_server:
|
||||||
|
|
@ -69,6 +83,27 @@ endpoints:
|
||||||
mistral_local:
|
mistral_local:
|
||||||
endpoint: 127.0.0.1:8001
|
endpoint: 127.0.0.1:8001
|
||||||
|
|
||||||
|
|
||||||
|
# Prompt targets for function calling and API orchestration
|
||||||
|
prompt_targets:
|
||||||
|
- name: get_current_weather
|
||||||
|
description: Get current weather at a location.
|
||||||
|
parameters:
|
||||||
|
- name: location
|
||||||
|
description: The location to get the weather for
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
format: City, State
|
||||||
|
- name: days
|
||||||
|
description: the number of days for the request
|
||||||
|
required: true
|
||||||
|
type: int
|
||||||
|
endpoint:
|
||||||
|
name: app_server
|
||||||
|
path: /weather
|
||||||
|
http_method: POST
|
||||||
|
|
||||||
|
|
||||||
# OpenTelemetry tracing configuration
|
# OpenTelemetry tracing configuration
|
||||||
tracing:
|
tracing:
|
||||||
# Random sampling percentage (1-100)
|
# Random sampling percentage (1-100)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue