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:
perf3ct
2025-04-06 20:50:08 +00:00
parent eb353df010
commit 26b1b08129
23 changed files with 1826 additions and 133 deletions

View File

@@ -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;
}
/**