Skip to content

Commit

Permalink
changed the AgentLiveSchema.context type to use 'role' instead of 'ty…
Browse files Browse the repository at this point in the history
…pe' in the messages array
  • Loading branch information
BuckyMcYolo authored and naomi-lgbt committed Feb 15, 2025
1 parent 490a2eb commit b39256d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/types/AgentLiveSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ interface AgentLiveSchema extends Record<string, unknown> {
/**
* LLM message history (e.g. to restore existing conversation if websocket disconnects)
*/
messages: { type: "user" | "assistant"; content: string }[];
messages: { role: "user" | "assistant"; content: string }[];
/**
* Whether to replay the last message, if it is an assistant message.
*/
Expand Down

0 comments on commit b39256d

Please sign in to comment.