Commit Graph
146 Commits
Author SHA1 Message Date
epenetGitHubcopilot-swe-agent[bot] <[email protected]>frenck
d766aae436 Remove import annotations from components (#169536)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: frenck <[email protected]>
2026-04-30 21:14:48 +02:00
Artur PragaczandGitHub bafef2065f Rework user-given entity name logic (#162763) 2026-03-17 11:09:20 +01:00
Denis ShulyakaandGitHub 49689ad677 Save failed intent results to chat log (#163031) 2026-02-15 11:52:13 +01:00
Artur PragaczandGitHub e54d7e42cb Add subscription pattern for conversation intents (#158456) 2026-01-30 07:19:57 +01:00
Artur PragaczandGitHub 9f3dae6254 Add tools in default agent also in fallback pipeline (#157441) 2025-11-28 09:47:52 +01:00
Paulus SchoutsenandGitHub d2248d282c Default conversation agent to store tool calls in chat log (#157377) 2025-11-27 12:27:03 +01:00
Artur PragaczandGitHub a7edfb082f Move config intents to manager (#154903) 2025-11-10 16:04:25 -06:00
ca90826478 Use satellite area in fuzzy matcher (#155347)
Co-authored-by: Robert Resch <[email protected]>
2025-10-29 16:27:22 +01:00
Michael HansenandGitHub b9e7f1c628 Bump intents and fix for api change (#155374) 2025-10-28 16:06:33 -07:00
Artur PragaczandGitHub b46097a7fc Move agent functionality from http (#153917) 2025-10-07 14:49:11 +02:00
Artur PragaczandGitHub b9a1ab4a44 Clean up core references in conversation (#153880) 2025-10-07 00:46:47 +02:00
Artur PragaczandGitHub 8be79ecdb0 Move conversation trigger registration to manager (#152749) 2025-09-23 10:01:46 -05:00
Artur PragaczandGitHub 4eaf6784af Use satellite entity area in the default agent (#152762) 2025-09-22 13:34:31 -05:00
Artur PragaczandGitHub 51c35eb631 Move default conversation agent to manager (#152479) 2025-09-18 08:22:56 +02:00
Artur PragaczandGitHub 1b99ffe61b Pass satellite id through assist pipeline (#151992) 2025-09-11 11:13:23 -05:00
Artur PragaczandGitHub df3d4b5db1 Clean up unused intent category (#151917) 2025-09-08 19:42:23 +02:00
Artur PragaczandGitHub 0a3032e766 Fix recognition of entity names in default agent with interpunction (#151759) 2025-09-05 11:42:56 +02:00
Michael HansenandGitHub 57265ac648 Add fuzzy matching to default agent (#150595) 2025-08-14 16:28:42 -05:00
Michael HansenandGitHub cf68214c4d Bump hassil to 3.1.0 (#150584) 2025-08-13 20:58:57 +02:00
Michael HansenandGitHub a150f9d5ad Bump intents and always prefer more literal text (#141663) 2025-03-28 13:03:42 -04:00
Paulus SchoutsenandGitHub 49a62d5294 Standardize conversation.async_process method (#140125) 2025-03-10 14:15:10 -05:00
Erik MontnemeryandGitHub 354855ff5f Remove some dead code from the conversation integration (#138878) 2025-02-19 21:51:45 +01:00
Paulus SchoutsenandGitHub 0b6f49fec2 Filter out certain intents from being matched in local fallback (#137763)
* Filter out certain intents from being matched in local fallback

* Only filter if LLM agent can control HA
2025-02-19 14:27:42 -06:00
Michael HansenandGitHub 30a6a6ad4b Use language util to match intent language (#138560) 2025-02-14 20:51:53 -05:00
Paulus SchoutsenandGitHub 7883106e7c Make sure we always have agent_id in ConversationInput (#137679)
* Make sure we always have agent_id in ConversationInput

* fix type
2025-02-07 18:25:21 -08:00
Paulus SchoutsenandGitHub 649319f4ee Introduce async_add_assistant_content to conversation chat log (#137273)
introduce async_add_assistant_content_without_tools to conversation chat log
2025-02-03 14:27:55 -06:00
Paulus SchoutsenandGitHub 9679fc7878 Chat session rev2 (#137209)
* Chat Session rev 2

* Rename session to chat_log

* Simplify typing

* Typing

* Address comments

* Fix anthropic and ollama
2025-02-03 00:05:20 -05:00
Paulus SchoutsenandGitHub dd9bd8ef73 Make get_chat_session a callback context manager (#137146) 2025-02-01 23:37:24 -05:00
Paulus SchoutsenandGitHub 2f6640707b Extract conversation ID generation to helper (#137062)
* Extract conversation ID generation to helper

* Allow nested get_chat_log calls
2025-02-01 20:54:00 -05:00
Paulus SchoutsenandGitHub 5690516852 ChatSession: Split native content out of message class (#136668)
Split native content out of message class
2025-01-27 21:12:42 -08:00
Michael HansenandGitHub 414fa4125e Don't translate state names in default agent responses (#136382)
Don't translate state names in responses
2025-01-23 16:03:48 -06:00
Paulus SchoutsenandGitHub 85f10cf60a Use LLM fallback when local matching matches intent but not targets (#136045)
LLM fallback to be used when local matching matches intent but finds no targets
2025-01-20 02:06:06 -05:00
Paulus SchoutsenandGitHub 754de6f998 Add shared history for conversation agents (#135903)
* Add shared history for conversation agents

* Remove unused code

* Add support for native history items

* Store all assistant responses as assistant in history

* Add history support to DefaultAgent.async_handle_intents

* Make local fallback work

* Add default agent history

* Add history cleanup

* Add tests

* ChatHistory -> ChatSession

* Address comments

* Update snapshots
2025-01-18 22:33:03 -05:00
Paulus SchoutsenandGitHub 5062a7fec8 Add new api to fetch sentence triggers (#132764)
* Add new api to fetch sentence triggers

* With latest packages
2024-12-09 23:21:27 -05:00
Michael HansenandGitHub ab83ec61e0 Ensure entity names are not hassil templates (#132184) 2024-12-03 19:37:05 +01:00
6103cea3f5 Make the full conversation input available to sentence triggers (#131982)
Co-authored-by: Michael Hansen <[email protected]>
2024-11-30 22:04:29 -06:00
Michael HansenandGitHub 752df5a8cb Filter entity names before intent matching (#131563) 2024-11-26 09:42:31 +01:00
Michael HansenandGitHub f47840d83c Cache intent recognition results (#131114) 2024-11-22 20:57:42 -05:00
Michael HansenandGitHub 5fa9a945d9 Handle sentence triggers and local intents before pipeline agent (#129058)
* Handle sentence triggers and registered intents in Assist LLM API

* Remove from LLM

* Check sentence triggers and local intents first

* Fix type

* Fix type again

* Use pipeline language

* Fix cloud test

* Clean up and fix translation key

* Refactor async_recognize
2024-11-14 10:50:50 -06:00
Michael HansenandGitHub 51c6ee97b1 Upgrade to hassil 2.0 (#130544)
* Working on hassil 2.0

* Bump to hassil 2.0

* Update snapshots

* Remove debug logging
2024-11-13 16:50:08 -05:00
MichaelandGitHub f10063c9be Fix translation key for done response in conversation (#130247) 2024-11-10 16:28:58 +01:00
Artur PragaczandGitHub bb9f534259 Improve intent recognition in default conversation agent (#124282)
Use the same logic for custom sentences.
Prefer higher quality (longer) names.
2024-10-15 09:14:31 -05:00
Michael HansenandGitHub 67e0ccf677 Use exposed error messages in Assist (#127503)
* Use exposed error messages

* Report expose errors

* Remove comment

* Relative import

* Rework expose check logic

* Delay creation of all names list, and skip config/hidden entities

* Clean up commented code and type issue

* Fix test

* Move assistant check
2024-10-11 13:06:03 -04:00
epenetandGitHub f8a53aea09 Use HassKey in conversation (#126332)
* Use HassKey in conversation

* Adjust tests
2024-09-22 17:54:14 +02:00
Andrii MitnovychandGitHub 254aa8c9ea Add entity deduplication by assist device ID in conversation agent (#123957)
* Add entities deduplication by assist device ID in default conversation agent

* Updated test.
2024-08-19 15:00:23 -05:00
Allen PorterandGitHub 8d0e998e54 Improve conversation agent tracing to help with eval and data collection (#122542) 2024-07-31 14:38:44 +02:00
Michael HansenandGitHub 69ed730101 Bump hassil to 1.7.3 for number word caching (#121608)
* Bump hassil to 1.7.3

* Add wildcard slot list name
2024-07-09 17:25:40 +02:00
Paulus SchoutsenandGitHub 01861cd240 Ensure we prepare conversation pipeline when speech-to-text starts (#114665)
* Ensure we prepare conversation pipeline when speech-to-text starts

* Add lock around recognize

* Update homeassistant/components/conversation/default_agent.py

* Add lock around load intents
2024-07-09 09:58:52 -05:00
4498bf9ec4 Remove language lock from default agent and move around tests (#121531)
* Remove language lock

* Remove unsub for change events

* Remove redundant check

* Simplify intent loading

* Cache intent loading error

* Revert "Remove unsub for change events"

This reverts commit 575266abcd.

* guard instead of assert

* Some more cleanup

* No need to warn during prepare

* Some more cleanup

* Add more timing logs

* Split up tests and rely less on http

---------

Co-authored-by: Paulus Schoutsen <[email protected]>
2024-07-09 16:05:43 +02:00
Paulus SchoutsenandGitHub eb0f6f7088 Ensure intents_changed variable is always initialized (#121444) 2024-07-07 17:32:35 +02:00