ai-output-parser/tests/ai_output.md.old

55 lines
3 KiB
Markdown
Raw Permalink Normal View History

2026-08-30 10:03:26 +02:00
<think>
Okay, let's see what this user is asking for. They want me to create a YAML schema based on their input about setting a proxy in Mozilla Firefox. First, they mention they're trying to configure a proxy and have different options like no proxy, auto-detect, system settings, etc., with default being 'No proxy'.
In the second example provided by another user, it's similar but focuses more on the variable choices in setting up proxies. The output schema includes variables with descriptions, types, choices, and defaults.
Now, looking at the current interaction: The user is trying to set a proxy in Firefox. They've chosen the manual mode. The address specified isn't clear initially; it says '192.168.230.4 not' which seems like an error or unclear syntax. The port they're setting is 8080.
So, I need to create a YAML schema based on this scenario. Since the user is choosing between different proxy configurations and has specific settings for address and port, but there's some confusion with the address part, perhaps that needs clarification. However, the main choices are already outlined in the first example.
I'll structure the schema similarly: include variables like proxy_mode, proxy_address, proxy_port, etc., each with appropriate descriptions and types. The default choice is 'No proxy', as per the user's example.
But wait, there's confusion about the proxy_address being '192.168.230.4 not'. Maybe it should be '192.168.230.4' without the 'not'. Also, perhaps the address is optional or needs more details, but for simplicity, I'll proceed with what's given.
I need to make sure each choice has a description and that default values are included as specified in the schema example. So, variables like proxy_address, proxy_port, etc., will be defined with their respective descriptions, types (like string), choices, and defaults.
Finally, ensure the YAML is properly formatted and enclosed within triple backticks for code-like structure.
</think>
```yaml
---
proxy_mode:
description: Configure Proxy Access to the Internet
type: choice
default: No proxy
proxy_address:
description: IP address where proxy will be configured
type: string
required: true
choices:
- 192.168.230.4
- 10.100.200.50
proxy_port:
description: Port number for proxy configuration
type: integer
default: 8080
default:
description: Default value for all variables
type: choice
choices:
- No proxy
```
### Explanation:
- **proxy_mode**: This variable defines the primary configuration mode, such as 'No proxy', 'Auto-detect...', or other options. The default is set to 'No proxy'.
- **proxy_address**: This field specifies the IP address where the proxy will be configured. It has a required type and optional choices.
- **proxy_port**: Specifies the port number for proxy configuration. A default value of 8080 is provided, though it can be adjusted based on user needs.
This schema provides a structured way to handle proxy configurations, allowing users to choose from predefined options with specific settings.