mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-29 11:23:57 +08:00
feat: Add structured output support with JSON schema validation
- Introduced `structured_output` and `json_schema` parameters to enhance API responses. - Updated service schemas and API client methods to handle structured output. - Added translations for new parameters in multiple languages. - Updated documentation to reflect changes in service capabilities. Closes #9
This commit is contained in:
@@ -74,6 +74,22 @@ ask_question:
|
||||
step: 1
|
||||
mode: box
|
||||
|
||||
structured_output:
|
||||
name: Structured Output
|
||||
description: Enable JSON structured output mode. When enabled, the AI will respond with valid JSON matching the provided schema.
|
||||
required: false
|
||||
default: false
|
||||
selector:
|
||||
boolean:
|
||||
|
||||
json_schema:
|
||||
name: JSON Schema
|
||||
description: JSON Schema defining the structure of the expected response. Required when structured_output is enabled. Example: {"type": "object", "properties": {"answer": {"type": "string"}}, "required": ["answer"]}
|
||||
required: false
|
||||
selector:
|
||||
text:
|
||||
multiline: true
|
||||
|
||||
clear_history:
|
||||
name: Clear History
|
||||
description: >-
|
||||
|
||||
Reference in New Issue
Block a user