nidus-sync/db/sql/texts_by_senders.sql
Eli Ribble a68b8781e7
Add ability to make LLM agent forget the conversation history
This is extremely useful for testing.

In order to do this I needed to actually deploy the migration to a bob
fork so I could start to add support for behaviors I really want.
Specifically the ability to search for ids in a slice.
2026-01-27 18:44:02 +00:00

18 lines
284 B
SQL

-- TextsBySenders
SELECT
id,
content,
created,
source,
destination,
is_visible_to_llm,
is_welcome,
origin
FROM
comms.text_log
WHERE
(source = $1 AND destination = $2)
OR
(source = $2 AND destination = $1)
ORDER BY
created ASC;