* Add AI Task integration * Remove GenTextTaskType * Add AI Task prefs * Add action to LLM task * Remove WS command * Rename result to text for GenTextTaskResult * Apply suggestions from code review Co-authored-by: Allen Porter <allen.porter@gmail.com> * Add supported feature for generate text * Update const.py Co-authored-by: HarvsG <11440490+HarvsG@users.noreply.github.com> * Update homeassistant/components/ai_task/services.yaml Co-authored-by: HarvsG <11440490+HarvsG@users.noreply.github.com> * Use WS API to set preferences * Simplify pref storage * Simplify pref test * Update homeassistant/components/ai_task/services.yaml Co-authored-by: Allen Porter <allen.porter@gmail.com> --------- Co-authored-by: Allen Porter <allen.porter@gmail.com> Co-authored-by: HarvsG <11440490+HarvsG@users.noreply.github.com>
23 lines
596 B
JSON
23 lines
596 B
JSON
{
|
|
"services": {
|
|
"generate_text": {
|
|
"name": "Generate text",
|
|
"description": "Use AI to run a task that generates text.",
|
|
"fields": {
|
|
"task_name": {
|
|
"name": "Task Name",
|
|
"description": "Name of the task."
|
|
},
|
|
"instructions": {
|
|
"name": "Instructions",
|
|
"description": "Instructions on what needs to be done."
|
|
},
|
|
"entity_id": {
|
|
"name": "Entity ID",
|
|
"description": "Entity ID to run the task on. If not provided, the preferred entity will be used."
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|