feat: tweaking of newsletter prompt

This commit is contained in:
2024-11-29 21:20:21 +01:00
parent 541433418e
commit 6e51e1c350
7 changed files with 128 additions and 124 deletions

37
utils/anthropic/tool.ts Normal file
View File

@@ -0,0 +1,37 @@
export interface BaseTool {
readonly name: string;
readonly input_schema: {
readonly type: 'object';
readonly properties: Record<string, unknown>;
readonly required?: readonly string[];
readonly description?: string;
};
}
export interface NewsletterTool {
title: string;
content: string;
focus: string;
}
export const newsletterTool: BaseTool = {
name: 'NewsletterTool' as const,
input_schema: {
type: 'object' as const,
description: 'Newsletter',
properties: {
title: {
type: 'string' as const,
description: 'The title of the newsletter'
},
content: {
type: 'string' as const,
description: 'The main content of the newsletter'
},
focus: {
type: 'string' as const,
description: 'The text of the focus segment'
}
}
}
} as const;