mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-05 08:06:19 +00:00
fix formatting for biome ci
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
9c0c555725
commit
4b51f4e595
4 changed files with 18 additions and 25 deletions
|
|
@ -135,14 +135,8 @@ export const getProfileTool = (
|
|||
inputSchema: z.object({
|
||||
containerTag: strict
|
||||
? z.string().describe(PARAMETER_DESCRIPTIONS.containerTag)
|
||||
: z
|
||||
.string()
|
||||
.optional()
|
||||
.describe(PARAMETER_DESCRIPTIONS.containerTag),
|
||||
query: z
|
||||
.string()
|
||||
.optional()
|
||||
.describe(PARAMETER_DESCRIPTIONS.query),
|
||||
: z.string().optional().describe(PARAMETER_DESCRIPTIONS.containerTag),
|
||||
query: z.string().optional().describe(PARAMETER_DESCRIPTIONS.query),
|
||||
}),
|
||||
execute: async ({ containerTag, query }) => {
|
||||
try {
|
||||
|
|
@ -197,14 +191,8 @@ export const documentListTool = (
|
|||
.optional()
|
||||
.default(DEFAULT_VALUES.limit)
|
||||
.describe(PARAMETER_DESCRIPTIONS.limit),
|
||||
offset: z
|
||||
.number()
|
||||
.optional()
|
||||
.describe(PARAMETER_DESCRIPTIONS.offset),
|
||||
status: z
|
||||
.string()
|
||||
.optional()
|
||||
.describe(PARAMETER_DESCRIPTIONS.status),
|
||||
offset: z.number().optional().describe(PARAMETER_DESCRIPTIONS.offset),
|
||||
status: z.string().optional().describe(PARAMETER_DESCRIPTIONS.status),
|
||||
}),
|
||||
execute: async ({ containerTag, limit, offset, status }) => {
|
||||
try {
|
||||
|
|
@ -329,10 +317,7 @@ export const memoryForgetTool = (
|
|||
.string()
|
||||
.optional()
|
||||
.describe(PARAMETER_DESCRIPTIONS.containerTag),
|
||||
memoryId: z
|
||||
.string()
|
||||
.optional()
|
||||
.describe(PARAMETER_DESCRIPTIONS.memoryId),
|
||||
memoryId: z.string().optional().describe(PARAMETER_DESCRIPTIONS.memoryId),
|
||||
memoryContent: z
|
||||
.string()
|
||||
.optional()
|
||||
|
|
|
|||
|
|
@ -37,7 +37,9 @@ export interface ProfileResult {
|
|||
export interface DocumentListResult {
|
||||
success: boolean
|
||||
documents?: Awaited<ReturnType<Supermemory["documents"]["list"]>>["documents"]
|
||||
pagination?: Awaited<ReturnType<Supermemory["documents"]["list"]>>["pagination"]
|
||||
pagination?: Awaited<
|
||||
ReturnType<Supermemory["documents"]["list"]>
|
||||
>["pagination"]
|
||||
error?: string
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,13 +31,15 @@ export const PARAMETER_DESCRIPTIONS = {
|
|||
containerTag: "Tag to filter/scope the operation (e.g., user ID, project ID)",
|
||||
query: "Optional search query to include relevant search results",
|
||||
offset: "Number of items to skip for pagination (default: 0)",
|
||||
status: "Filter documents by processing status (e.g., 'completed', 'processing', 'failed')",
|
||||
status:
|
||||
"Filter documents by processing status (e.g., 'completed', 'processing', 'failed')",
|
||||
documentId: "The unique identifier of the document to operate on",
|
||||
content: "The content to add - can be text, URL, or other supported formats",
|
||||
title: "Optional title for the document",
|
||||
description: "Optional description for the document",
|
||||
memoryId: "The unique identifier of the memory entry",
|
||||
memoryContent: "Exact content match of the memory entry to operate on (alternative to ID)",
|
||||
memoryContent:
|
||||
"Exact content match of the memory entry to operate on (alternative to ID)",
|
||||
reason: "Optional reason for forgetting this memory",
|
||||
} as const
|
||||
|
||||
|
|
|
|||
|
|
@ -162,7 +162,9 @@ const wrapVercelLanguageModel = <T extends LanguageModel>(
|
|||
) as T
|
||||
|
||||
// biome-ignore lint/suspicious/noExplicitAny: Union type compatibility between V2 and V3
|
||||
wrappedModel.doGenerate = async (params: LanguageModelCallOptions): Promise<any> => {
|
||||
wrappedModel.doGenerate = async (
|
||||
params: LanguageModelCallOptions,
|
||||
): Promise<any> => {
|
||||
try {
|
||||
const transformedParams = await transformParamsWithMemory(params, ctx)
|
||||
|
||||
|
|
@ -201,7 +203,9 @@ const wrapVercelLanguageModel = <T extends LanguageModel>(
|
|||
}
|
||||
|
||||
// biome-ignore lint/suspicious/noExplicitAny: Union type compatibility between V2 and V3
|
||||
wrappedModel.doStream = async (params: LanguageModelCallOptions): Promise<any> => {
|
||||
wrappedModel.doStream = async (
|
||||
params: LanguageModelCallOptions,
|
||||
): Promise<any> => {
|
||||
let generatedText = ""
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue