InsertSyntheticToolResultsTxForTest exposes the unexported helper so tests can verify the dedup path against pre-existing tool results.
( ctx context.Context, store database.Store, chat database.Chat, reason string, )
| 53 | // so tests can verify the dedup path against pre-existing tool |
| 54 | // results. |
| 55 | func InsertSyntheticToolResultsTxForTest( |
| 56 | ctx context.Context, |
| 57 | store database.Store, |
| 58 | chat database.Chat, |
| 59 | reason string, |
| 60 | ) ([]database.ChatMessage, error) { |
| 61 | return insertSyntheticToolResultsTx(ctx, store, chat, reason) |
| 62 | } |
no test coverage detected