Files
ha-text-ai/custom_components/ha_text_ai/services.yaml
T

111 lines
2.5 KiB
YAML
Raw Normal View History

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.
2024-11-22 18:59:10 +03:00
target:
entity:
2024-11-24 01:01:51 +03:00
domain: sensor
2024-11-22 18:59:10 +03:00
integration: ha_text_ai
2024-11-14 18:35:50 +03:00
fields:
2024-11-18 01:36:58 +03:00
question:
name: Question
2024-11-22 01:34:47 +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-19 14:00:33 +03:00
type: text
2024-11-18 01:36:58 +03:00
2024-11-14 18:35:50 +03:00
model:
name: Model
2024-11-22 01:34:47 +03:00
description: "Select AI model to use (optional, overrides default setting)."
2024-11-14 18:35:50 +03:00
required: false
selector:
2024-11-22 01:34:47 +03:00
text:
multiline: false
2024-11-21 13:56:22 +03:00
2024-11-14 18:35:50 +03:00
temperature:
name: Temperature
2024-11-22 01:34:47 +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
2024-11-22 01:34:47 +03:00
description: Maximum length of the response (1-4096 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
2024-11-19 12:45:26 +03:00
max: 4096
2024-11-18 01:36:58 +03:00
step: 1
2024-11-19 12:45:26 +03:00
mode: box
2024-11-18 01:36:58 +03:00
2024-11-19 18:53:51 +03:00
system_prompt:
name: System Prompt
2024-11-22 01:34:47 +03:00
description: Optional system prompt to set context for this specific question.
2024-11-19 18:53:51 +03:00
required: false
selector:
text:
multiline: true
2024-11-18 01:36:58 +03:00
clear_history:
name: Clear History
2024-11-22 01:34:47 +03:00
description: Delete all stored questions and responses from the conversation history.
2024-11-22 18:59:10 +03:00
target:
entity:
2024-11-24 01:01:51 +03:00
domain: sensor
2024-11-22 18:59:10 +03:00
integration: ha_text_ai
2024-11-18 01:36:58 +03:00
fields: {}
get_history:
name: Get History
2024-11-22 01:34:47 +03:00
description: Retrieve recent conversation history.
2024-11-22 18:59:10 +03:00
target:
entity:
2024-11-24 01:01:51 +03:00
domain: sensor
2024-11-22 18:59:10 +03:00
integration: ha_text_ai
2024-11-18 01:36:58 +03:00
fields:
limit:
name: Limit
2024-11-22 01:34:47 +03:00
description: Number of most recent conversations to return (1-100).
2024-11-14 18:35:50 +03:00
required: false
2024-11-18 01:36:58 +03:00
default: 10
2024-11-14 18:35:50 +03:00
selector:
number:
2024-11-18 01:36:58 +03:00
min: 1
max: 100
step: 1
2024-11-19 12:45:26 +03:00
mode: box
2024-11-18 01:36:58 +03:00
2024-11-20 01:02:27 +03:00
start_date:
name: Start Date
2024-11-22 01:34:47 +03:00
description: Optional start date for filtering history.
2024-11-20 01:02:27 +03:00
required: false
selector:
datetime:
2024-11-18 01:36:58 +03:00
set_system_prompt:
2024-11-19 18:53:51 +03:00
name: Set System Prompt
2024-11-22 01:34:47 +03:00
description: Set default system behavior instructions for all future conversations.
2024-11-22 18:59:10 +03:00
target:
entity:
2024-11-24 01:01:51 +03:00
domain: sensor
2024-11-22 18:59:10 +03:00
integration: ha_text_ai
2024-11-19 18:53:51 +03:00
fields:
2024-11-18 01:36:58 +03:00
prompt:
name: System Prompt
2024-11-22 01:34:47 +03:00
description: Instructions that define how the AI should behave and respond.
2024-11-18 01:36:58 +03:00
required: true
2024-11-14 18:35:50 +03:00
selector:
2024-11-18 01:36:58 +03:00
text:
multiline: true