Skip to content

Commit

Permalink
Update demoSearch.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
berkingurcan committed Jul 3, 2024
1 parent 092c20a commit 8352f2f
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions lib/tools/demoSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,7 @@ const functionDescription: ChatCompletionCreateParams.Function = {
'Search for context in discord threads',
parameters: {
type: 'object',
properties: {
query: {
type: 'string',
description:
'The query to search for. 1-3 sentences or words are enough. English only.'
}
},
required: ['query']
properties: {}
}
}

Expand Down Expand Up @@ -96,7 +89,7 @@ export const demoSearchTool: Tool = {
callable: runTool
}

export const demoSearchToolRunnable =(message: string): RunnableToolFunction<{ query: string }> => ({
export const demoSearchToolRunnable = (message: string): RunnableToolFunction<{ query: string }> => ({
type: 'function',
function: {
name: functionDescription.name,
Expand All @@ -106,8 +99,7 @@ export const demoSearchToolRunnable =(message: string): RunnableToolFunction<{ q
'Search for context in discord threads',
parameters: {
type: 'object',
properties: {
}
properties: {}
}
}
})

0 comments on commit 8352f2f

Please sign in to comment.