Commit Graph

282 Commits (077ff63b38a92fdfeb884dccf7df8957a5c44d56)

Author SHA1 Message Date
Paulus Schoutsen 90fc6ffdbf
Add support for continue conversation in Assist Pipeline (#139480)
* Add support for continue conversation in Assist Pipeline

* Also forward to ESPHome

* Update snapshot

* And mobile app
2025-02-28 13:15:31 -06:00
Michael Hansen f3fb7cd8e8
Bump intents to 2025.2.26 (#139387) 2025-02-26 20:14:03 +00:00
Erik Montnemery 354855ff5f
Remove some dead code from the conversation integration (#138878) 2025-02-19 21:51:45 +01:00
Paulus Schoutsen 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 Hansen 30a6a6ad4b
Use language util to match intent language (#138560) 2025-02-14 20:51:53 -05:00
Paulus Schoutsen 29c6a2ec13
Add pipeline intent-progress events based on deltas (#138095)
Add intent progress Assist event
2025-02-09 18:09:52 -08:00
Paulus Schoutsen cabb406270
Fix user input not added to chat log from contextvar (#138173) 2025-02-09 16:34:25 -08:00
Paulus Schoutsen df307aeb6d
Stream OpenAI messages into the chat log (#137400) 2025-02-09 00:01:24 -05:00
Marc Mueller 6e84280e3c
Small typing improvements (#137994) 2025-02-09 04:37:49 +01:00
Paulus Schoutsen f64b494282
Conversation chat log cleanup and optimization (#137784) 2025-02-07 22:06:16 -08:00
Paulus Schoutsen 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
Michael Hansen a1c675b5ee
Bump hassil and intents (#137440) 2025-02-05 18:02:01 +01:00
Paulus Schoutsen 417a595b73
Only clean up chat log if it was stored (#137399) 2025-02-05 08:25:05 -05:00
Paulus Schoutsen 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 Schoutsen 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 Schoutsen dd9bd8ef73
Make get_chat_session a callback context manager (#137146) 2025-02-01 23:37:24 -05:00
Paulus Schoutsen 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
Michael Hansen 48dfa037bd
Bump intents to 2025.1.28 (#136782)
* Bump intents to 2025.1.28

* Fix snapshots
2025-01-28 22:25:35 -06:00
Michael Hansen eb4a05e365
Bump hassil to 2.2.0 (#136787) 2025-01-28 18:58:53 -05:00
epenet d5568ff955
Standardize homeassistant imports in full-CI components (#136731)
Standardize homeassistant imports in components
2025-01-28 13:11:19 -05:00
Paulus Schoutsen 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
Allen Porter 69938545df
Push more of the LLM conversation agent loop into ChatSession (#136602)
* Push more of the LLM conversation agent loop into ChatSession

* Revert unnecessary changes

* Revert changes to agent id filtering
2025-01-26 22:16:19 -05:00
Michael Hansen 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
epenet b11b36b523
Add more util aliases to import conventions (#136153) 2025-01-21 15:58:23 +01:00
Marc Mueller 29b7d5c2e4
Improve conversation typing (#136084) 2025-01-20 15:32:18 +01:00
Paulus Schoutsen 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 Schoutsen 0c68854fdf
Migrate tests from OpenAI to conversation integration (#135963) 2025-01-19 20:32:59 +01:00
Paulus Schoutsen 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 Schoutsen 7a484ee0ae
Add extra prompt to assist pipeline and conversation (#124743)
* Add extra prompt to assist pipeline and conversation

* extra_prompt -> extra_system_prompt

* Fix rebase

* Fix tests
2025-01-06 12:58:42 -05:00
Michael Hansen a435fd12f0
Bump intents to 2025.1.1 (#134424) 2025-01-01 21:03:17 -05:00
Michael Hansen 53ca31c112
Bump hassil to 2.1.0 (#134359) 2024-12-31 15:52:15 -05:00
Michael Hansen 8607ba884c
Bump intents to 2024.12.20 (#133676) 2024-12-20 14:23:12 -05:00
Paulus Schoutsen e24dc33259
Conversation: Use [] when we know key exists (#133305) 2024-12-15 21:45:50 +01:00
Paulus Schoutsen 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 Hansen 887f1621e5
Bump intents to 2024.12.9 (#132726) 2024-12-09 17:08:58 +01:00
Michael Hansen 5c60cffd4d
Bump intents to 2024.12.4 (#132274) 2024-12-04 11:02:00 -05:00
Michael Hansen ab83ec61e0
Ensure entity names are not hassil templates (#132184) 2024-12-03 19:37:05 +01:00
epenet 7c9b8552cb
Reapply "bump hassil and intents" (#132138) (#132151)
This reverts commit 39b2cf6ed2.
2024-12-03 15:21:41 +01:00
epenet 39b2cf6ed2
Revert "bump hassil and intents" (#132138)
* Revert "Fix bad hassil tests on CI (#132132)"

This reverts commit 101bb091ba.

* Revert "Bump hassil and intents (#132092)"

This reverts commit e52182940b.
2024-12-03 09:37:33 +01:00
Michael Hansen e52182940b
Bump hassil and intents (#132092) 2024-12-02 14:09:35 -05:00
Paulus Schoutsen 6103cea3f5
Make the full conversation input available to sentence triggers (#131982)
Co-authored-by: Michael Hansen <mike@rhasspy.org>
2024-11-30 22:04:29 -06:00
Michael Hansen 3eb483c1b0
Bump intents to 2024.11.27 (#131727) 2024-11-27 17:42:59 +01:00
Michael Hansen 752df5a8cb
Filter entity names before intent matching (#131563) 2024-11-26 09:42:31 +01:00
Michael Hansen f47840d83c
Cache intent recognition results (#131114) 2024-11-22 20:57:42 -05:00
Michael Hansen fb83d30d9d
Bump hassil to 2.0.2 (#130891) 2024-11-18 13:48:46 -05:00
Michael Hansen 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 Hansen 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
Michael f10063c9be
Fix translation key for `done` response in conversation (#130247) 2024-11-10 16:28:58 +01:00
Michael Hansen df16e6d022
Bump intents to 2024.11.6 (#129982) 2024-11-07 08:29:44 +01:00
Michael Hansen 901457e7aa
Bump intents and add HassRespond test (#129830) 2024-11-05 22:22:49 +01:00