mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-31 20:03:37 +00:00
40 lines
827 B
TypeScript
40 lines
827 B
TypeScript
/**
|
|
* Message fixtures for testing providers and lib utilities
|
|
*/
|
|
|
|
import type {
|
|
ConversationMessage,
|
|
ProviderMessage,
|
|
ContentBlock,
|
|
} from "../../src/providers/types.js";
|
|
|
|
export const conversationHistoryFixture: ConversationMessage[] = [
|
|
{
|
|
role: "user",
|
|
content: "Hello, can you help me?",
|
|
},
|
|
{
|
|
role: "assistant",
|
|
content: "Of course! How can I assist you today?",
|
|
},
|
|
{
|
|
role: "user",
|
|
content: [
|
|
{ type: "text", text: "What is in this image?" },
|
|
{
|
|
type: "image",
|
|
source: { type: "base64", media_type: "image/png", data: "base64data" },
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
export const claudeProviderMessageFixture: ProviderMessage = {
|
|
type: "assistant",
|
|
message: {
|
|
role: "assistant",
|
|
content: [{ type: "text", text: "This is a test response" }],
|
|
},
|
|
};
|
|
|