2024-11-18 01:36:58 +03:00
|
|
|
ask_question:
|
|
|
|
|
name: Ask Question
|
2024-11-19 14:00:33 +03:00
|
|
|
description: >-
|
|
|
|
|
Send a question to the AI model and receive a detailed response.
|
|
|
|
|
The response will be stored in the conversation history and can be retrieved later.
|
2025-09-01 17:14:23 +03:00
|
|
|
This service now returns response data directly, eliminating the need to read from sensors.
|
2024-11-14 18:35:50 +03:00
|
|
|
fields:
|
2024-11-24 02:20:29 +03:00
|
|
|
instance:
|
|
|
|
|
name: Instance
|
|
|
|
|
description: Name of the HA Text AI instance to use
|
|
|
|
|
required: true
|
|
|
|
|
selector:
|
2024-11-25 00:08:07 +03:00
|
|
|
entity:
|
|
|
|
|
integration: ha_text_ai
|
|
|
|
|
domain: sensor
|
2024-11-24 02:20:29 +03:00
|
|
|
|
2024-11-18 01:36:58 +03:00
|
|
|
question:
|
|
|
|
|
name: Question
|
2024-11-24 02:20:29 +03:00
|
|
|
description: Your question or prompt for the AI assistant
|
2024-11-14 18:35:50 +03:00
|
|
|
required: true
|
|
|
|
|
selector:
|
|
|
|
|
text:
|
|
|
|
|
multiline: true
|
2024-11-25 16:18:54 +03:00
|
|
|
type: text
|
2024-11-18 01:36:58 +03:00
|
|
|
|
2024-11-24 02:20:29 +03:00
|
|
|
system_prompt:
|
|
|
|
|
name: System Prompt
|
|
|
|
|
description: Optional system prompt to set context for this specific question
|
|
|
|
|
required: false
|
|
|
|
|
selector:
|
|
|
|
|
text:
|
|
|
|
|
multiline: true
|
|
|
|
|
|
2024-11-25 16:18:54 +03:00
|
|
|
context_messages:
|
|
|
|
|
name: Context Messages
|
|
|
|
|
description: Number of previous messages to include in context (1-20)
|
|
|
|
|
required: false
|
|
|
|
|
default: 5
|
|
|
|
|
selector:
|
|
|
|
|
number:
|
|
|
|
|
min: 1
|
|
|
|
|
max: 20
|
|
|
|
|
step: 1
|
2024-11-28 23:27:39 +03:00
|
|
|
mode: slider
|
2024-11-25 16:18:54 +03:00
|
|
|
|
2024-11-14 18:35:50 +03:00
|
|
|
model:
|
|
|
|
|
name: Model
|
2024-11-24 02:20:29 +03:00
|
|
|
description: "Select AI model to use (optional, overrides default setting)"
|
2024-11-14 18:35:50 +03:00
|
|
|
required: false
|
2024-11-28 23:27:39 +03:00
|
|
|
selector:
|
|
|
|
|
text: {}
|
2024-11-21 13:56:22 +03:00
|
|
|
|
2024-11-14 18:35:50 +03:00
|
|
|
temperature:
|
|
|
|
|
name: Temperature
|
2024-11-24 02:20:29 +03:00
|
|
|
description: Controls response creativity (0.0-2.0)
|
2024-11-14 18:35:50 +03:00
|
|
|
required: false
|
|
|
|
|
default: 0.7
|
|
|
|
|
selector:
|
|
|
|
|
number:
|
2024-11-18 01:36:58 +03:00
|
|
|
min: 0.0
|
2024-11-19 12:45:26 +03:00
|
|
|
max: 2.0
|
2024-11-14 18:35:50 +03:00
|
|
|
step: 0.1
|
2024-11-19 12:45:26 +03:00
|
|
|
mode: slider
|
2024-11-18 01:36:58 +03:00
|
|
|
|
2024-11-14 18:35:50 +03:00
|
|
|
max_tokens:
|
|
|
|
|
name: Max Tokens
|
2025-01-29 18:02:42 +03:00
|
|
|
description: Maximum length of the response (tokens)
|
2024-11-14 18:35:50 +03:00
|
|
|
required: false
|
2024-11-18 01:36:58 +03:00
|
|
|
default: 1000
|
2024-11-14 18:35:50 +03:00
|
|
|
selector:
|
|
|
|
|
number:
|
|
|
|
|
min: 1
|
2025-01-29 18:04:13 +03:00
|
|
|
max: 100000
|
2024-11-18 01:36:58 +03:00
|
|
|
step: 1
|
2024-11-19 12:45:26 +03:00
|
|
|
mode: box
|
2024-11-28 23:27:39 +03:00
|
|
|
|
2025-12-30 16:42:32 +03:00
|
|
|
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:
|
2025-12-30 16:49:13 +03:00
|
|
|
boolean: {}
|
2025-12-30 16:42:32 +03:00
|
|
|
|
|
|
|
|
json_schema:
|
|
|
|
|
name: JSON Schema
|
2025-12-30 16:49:13 +03:00
|
|
|
description: >-
|
|
|
|
|
JSON Schema defining the structure of the expected response.
|
|
|
|
|
Required when structured_output is enabled.
|
2025-12-30 16:42:32 +03:00
|
|
|
required: false
|
|
|
|
|
selector:
|
|
|
|
|
text:
|
|
|
|
|
multiline: true
|
|
|
|
|
|
2026-04-17 01:30:57 +03:00
|
|
|
disable_thinking:
|
|
|
|
|
name: Disable Thinking
|
|
|
|
|
description: >-
|
|
|
|
|
Disable model thinking/reasoning for this request.
|
|
|
|
|
Overrides the integration-level setting when provided.
|
|
|
|
|
required: false
|
|
|
|
|
selector:
|
|
|
|
|
boolean: {}
|
|
|
|
|
|
2024-11-28 23:27:39 +03:00
|
|
|
clear_history:
|
|
|
|
|
name: Clear History
|
|
|
|
|
description: >-
|
|
|
|
|
Delete all stored questions and responses from the conversation history
|
|
|
|
|
fields:
|
|
|
|
|
instance:
|
|
|
|
|
name: Instance
|
|
|
|
|
description: Name of the HA Text AI instance to clear history for
|
|
|
|
|
required: true
|
|
|
|
|
selector:
|
|
|
|
|
entity:
|
|
|
|
|
integration: ha_text_ai
|
|
|
|
|
domain: sensor
|
|
|
|
|
|
|
|
|
|
get_history:
|
|
|
|
|
name: Get History
|
|
|
|
|
description: Retrieve conversation history with optional filtering and sorting
|
|
|
|
|
fields:
|
|
|
|
|
instance:
|
|
|
|
|
name: Instance
|
|
|
|
|
description: Name of the HA Text AI instance to get history from
|
|
|
|
|
required: true
|
|
|
|
|
selector:
|
|
|
|
|
entity:
|
|
|
|
|
integration: ha_text_ai
|
|
|
|
|
domain: sensor
|
|
|
|
|
|
|
|
|
|
limit:
|
|
|
|
|
name: Limit
|
|
|
|
|
description: Number of conversations to return (1-100)
|
|
|
|
|
required: false
|
|
|
|
|
default: 10
|
|
|
|
|
selector:
|
|
|
|
|
number:
|
|
|
|
|
min: 1
|
|
|
|
|
max: 100
|
|
|
|
|
step: 1
|
|
|
|
|
mode: box
|
|
|
|
|
|
|
|
|
|
filter_model:
|
|
|
|
|
name: Filter Model
|
|
|
|
|
description: Filter conversations by specific AI model
|
|
|
|
|
required: false
|
|
|
|
|
selector:
|
|
|
|
|
text:
|
|
|
|
|
multiline: false
|
|
|
|
|
|
|
|
|
|
start_date:
|
|
|
|
|
name: Start Date
|
|
|
|
|
description: Filter conversations starting from this date/time
|
|
|
|
|
required: false
|
|
|
|
|
selector:
|
|
|
|
|
text:
|
|
|
|
|
multiline: false
|
|
|
|
|
|
|
|
|
|
include_metadata:
|
|
|
|
|
name: Include Metadata
|
|
|
|
|
description: Include additional information like tokens used, response time, etc.
|
|
|
|
|
required: false
|
|
|
|
|
default: false
|
|
|
|
|
selector:
|
2025-12-30 16:49:13 +03:00
|
|
|
boolean: {}
|
2024-11-28 23:27:39 +03:00
|
|
|
|
|
|
|
|
sort_order:
|
|
|
|
|
name: Sort Order
|
|
|
|
|
description: Sort order for results (newest or oldest first)
|
|
|
|
|
required: false
|
|
|
|
|
default: newest
|
|
|
|
|
selector:
|
|
|
|
|
select:
|
|
|
|
|
options:
|
|
|
|
|
- newest
|
|
|
|
|
- oldest
|
|
|
|
|
|
|
|
|
|
set_system_prompt:
|
|
|
|
|
name: Set System Prompt
|
|
|
|
|
description: Set default system behavior instructions for all future conversations
|
|
|
|
|
fields:
|
|
|
|
|
instance:
|
|
|
|
|
name: Instance
|
|
|
|
|
description: Name of the HA Text AI instance to set system prompt for
|
|
|
|
|
required: true
|
|
|
|
|
selector:
|
|
|
|
|
entity:
|
|
|
|
|
integration: ha_text_ai
|
|
|
|
|
domain: sensor
|
|
|
|
|
|
|
|
|
|
prompt:
|
|
|
|
|
name: System Prompt
|
|
|
|
|
description: Instructions that define how the AI should behave and respond
|
|
|
|
|
required: true
|
|
|
|
|
selector:
|
|
|
|
|
text:
|
|
|
|
|
multiline: true
|