mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-18 13:03:58 +00:00
Rename customMessageTransformer to customConvertToLlm
This commit is contained in:
parent
13a1991ec2
commit
6a6d1a59f4
2 changed files with 3 additions and 7 deletions
|
|
@ -79,7 +79,7 @@ export function createSystemNotification(
|
|||
* Custom message transformer that extends defaultConvertToLlm.
|
||||
* Handles system-notification messages by converting them to user messages.
|
||||
*/
|
||||
export function customMessageTransformer(messages: AgentMessage[]): Message[] {
|
||||
export function customConvertToLlm(messages: AgentMessage[]): Message[] {
|
||||
// First, handle our custom system-notification type
|
||||
const processed = messages.map((m): AgentMessage => {
|
||||
if (m.role === "system-notification") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue