@picahq/toolkit
Advanced tools
+7
-0
@@ -18,2 +18,9 @@ /** | ||
| get systemPrompt(): string; | ||
| /** | ||
| * Generate system prompt - optionally combine user prompt with Pica's | ||
| * @param userPrompt - Optional user's custom system prompt | ||
| * @param separator - Optional separator between prompts (default: double newline) | ||
| * @returns Pica's system prompt only, or combined prompt if userPrompt provided | ||
| */ | ||
| generateSystemPrompt(userPrompt?: string, separator?: string): string; | ||
| private logConnectorInitialization; | ||
@@ -20,0 +27,0 @@ private logActionInitialization; |
+12
-0
@@ -58,2 +58,14 @@ /** | ||
| } | ||
| /** | ||
| * Generate system prompt - optionally combine user prompt with Pica's | ||
| * @param userPrompt - Optional user's custom system prompt | ||
| * @param separator - Optional separator between prompts (default: double newline) | ||
| * @returns Pica's system prompt only, or combined prompt if userPrompt provided | ||
| */ | ||
| generateSystemPrompt(userPrompt, separator = '\n\n') { | ||
| if (!userPrompt) { | ||
| return this.systemPrompt; | ||
| } | ||
| return `${userPrompt}${separator}${this.systemPrompt}`; | ||
| } | ||
| logConnectorInitialization() { | ||
@@ -60,0 +72,0 @@ if (isInitializingWithAllConnectors(this.options?.connectors)) { |
+1
-1
| { | ||
| "name": "@picahq/toolkit", | ||
| "version": "0.2.0", | ||
| "version": "0.3.0", | ||
| "description": "Pica tools for the Vercel AI SDK", | ||
@@ -5,0 +5,0 @@ "type": "module", |
+1
-1
@@ -67,3 +67,3 @@ # Pica ToolKit | ||
|  | ||
| <img src="https://assets.picaos.com/github/toolkit-diagram.svg" style="border-radius: 5px;" alt="ToolKit Diagram"> | ||
@@ -70,0 +70,0 @@ Here are some powerful examples use cases: |
Sorry, the diff of this file is not supported yet
197342
0.5%2361
0.81%