mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
tool calling is close to working
getting closer to calling tools... we definitely need this closer to tool execution... agentic tool calling is...kind of working?
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { Message, ChatCompletionOptions, ChatResponse, StreamChunk } from '../ai_interface.js';
|
||||
import type { LLMServiceInterface } from '../interfaces/agent_tool_interfaces.js';
|
||||
|
||||
/**
|
||||
* Base interface for pipeline input
|
||||
@@ -61,6 +62,25 @@ export interface ChatPipelineInput extends PipelineInput {
|
||||
streamCallback?: StreamCallback;
|
||||
}
|
||||
|
||||
/**
|
||||
* Options for vector search operations
|
||||
*/
|
||||
export interface VectorSearchOptions {
|
||||
maxResults?: number;
|
||||
useEnhancedQueries?: boolean;
|
||||
threshold?: number;
|
||||
llmService?: LLMServiceInterface;
|
||||
}
|
||||
|
||||
/**
|
||||
* Input for vector search pipeline stage
|
||||
*/
|
||||
export interface VectorSearchInput extends PipelineInput {
|
||||
query: string;
|
||||
noteId?: string | null;
|
||||
options?: VectorSearchOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Base interface for pipeline stage output
|
||||
*/
|
||||
@@ -130,6 +150,7 @@ export interface ToolExecutionInput extends PipelineInput {
|
||||
response: ChatResponse;
|
||||
messages: Message[];
|
||||
options?: ChatCompletionOptions;
|
||||
maxIterations?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user