@picahq/toolkit
Advanced tools
@@ -132,3 +132,7 @@ /** | ||
| } | ||
| knowledgeMap[systemId] = updatedKnowledge; | ||
| knowledgeMap[systemId] = { | ||
| title: actionKnowledge.title, | ||
| knowledge: updatedKnowledge, | ||
| platform: actionKnowledge.connectionPlatform | ||
| }; | ||
| } | ||
@@ -135,0 +139,0 @@ } |
@@ -62,3 +62,4 @@ /** | ||
| returnRequestConfigWithoutExecution, | ||
| options | ||
| options, | ||
| platform: action.connectionPlatform | ||
| }); | ||
@@ -98,3 +99,3 @@ } | ||
| */ | ||
| async function executePassthrough({ baseUrl, secret, actionId, connectionKey, data, path, method, queryParams, headers, isFormData, isFormUrlEncoded, returnRequestConfigWithoutExecution, options }) { | ||
| async function executePassthrough({ baseUrl, secret, actionId, connectionKey, data, path, method, queryParams, headers, isFormData, isFormUrlEncoded, returnRequestConfigWithoutExecution, options, platform }) { | ||
| try { | ||
@@ -167,3 +168,4 @@ const allHeaders = { | ||
| executed: false, | ||
| requestConfig | ||
| requestConfig, | ||
| platform | ||
| }; | ||
@@ -181,3 +183,4 @@ } | ||
| } | ||
| } | ||
| }, | ||
| platform | ||
| }; | ||
@@ -184,0 +187,0 @@ } |
@@ -40,3 +40,7 @@ /** | ||
| export type GetActionsKnowledgeParams = z.infer<typeof getActionsKnowledgeSchema>; | ||
| export declare const ActionsKnowledgeResponseSchema: z.ZodRecord<z.ZodString, z.ZodString>; | ||
| export declare const ActionsKnowledgeResponseSchema: z.ZodRecord<z.ZodString, z.ZodObject<{ | ||
| title: z.ZodString; | ||
| knowledge: z.ZodString; | ||
| platform: z.ZodString; | ||
| }, z.core.$strip>>; | ||
| export declare const SEARCH_PLATFORM_ACTIONS_TOOL_CONFIG: { | ||
@@ -69,3 +73,7 @@ name: string; | ||
| }, z.core.$strip>; | ||
| outputSchema: z.ZodRecord<z.ZodString, z.ZodString>; | ||
| outputSchema: z.ZodRecord<z.ZodString, z.ZodObject<{ | ||
| title: z.ZodString; | ||
| knowledge: z.ZodString; | ||
| platform: z.ZodString; | ||
| }, z.core.$strip>>; | ||
| }; |
@@ -31,3 +31,7 @@ /** | ||
| }); | ||
| export const ActionsKnowledgeResponseSchema = z.record(z.string(), z.string()); | ||
| export const ActionsKnowledgeResponseSchema = z.record(z.string(), z.object({ | ||
| title: z.string(), | ||
| knowledge: z.string(), | ||
| platform: z.string() | ||
| })); | ||
| export const SEARCH_PLATFORM_ACTIONS_TOOL_CONFIG = { | ||
@@ -34,0 +38,0 @@ name: "searchPlatformActions", |
@@ -31,2 +31,3 @@ /** | ||
| }, z.core.$strip>; | ||
| platform: z.ZodOptional<z.ZodString>; | ||
| }, z.core.$strip>, z.ZodObject<{ | ||
@@ -44,2 +45,3 @@ success: z.ZodBoolean; | ||
| }, z.core.$strip>; | ||
| platform: z.ZodOptional<z.ZodString>; | ||
| }, z.core.$strip>]>; | ||
@@ -69,2 +71,3 @@ export declare const EXECUTE_ACTION_TOOL_CONFIG: { | ||
| }, z.core.$strip>; | ||
| platform: z.ZodOptional<z.ZodString>; | ||
| }, z.core.$strip>, z.ZodObject<{ | ||
@@ -82,2 +85,3 @@ success: z.ZodBoolean; | ||
| }, z.core.$strip>; | ||
| platform: z.ZodOptional<z.ZodString>; | ||
| }, z.core.$strip>]>; | ||
@@ -119,2 +123,3 @@ }; | ||
| }, z.core.$strip>; | ||
| platform: z.ZodOptional<z.ZodString>; | ||
| }, z.core.$strip>, z.ZodObject<{ | ||
@@ -132,3 +137,4 @@ success: z.ZodBoolean; | ||
| }, z.core.$strip>; | ||
| platform: z.ZodOptional<z.ZodString>; | ||
| }, z.core.$strip>]>; | ||
| }; |
@@ -30,3 +30,4 @@ /** | ||
| data: z.any().optional() | ||
| }) | ||
| }), | ||
| platform: z.string().optional() | ||
| }), | ||
@@ -45,3 +46,4 @@ z.object({ | ||
| data: z.any().optional() | ||
| }) | ||
| }), | ||
| platform: z.string().optional() | ||
| }) | ||
@@ -48,0 +50,0 @@ ]); |
@@ -98,3 +98,7 @@ /** | ||
| export interface ActionsKnowledgeResponse { | ||
| [systemId: string]: string; | ||
| [systemId: string]: { | ||
| title: string; | ||
| knowledge: string; | ||
| platform: string; | ||
| }; | ||
| } | ||
@@ -112,2 +116,3 @@ export interface RequestConfig { | ||
| requestConfig: RequestConfig; | ||
| platform?: string; | ||
| } | ||
@@ -121,2 +126,3 @@ export interface ExecuteActionErrorResponse { | ||
| requestConfig: RequestConfig; | ||
| platform?: string; | ||
| } | ||
@@ -123,0 +129,0 @@ export type ExecuteActionResponse = ExecuteActionResponseSuccess | ExecuteActionErrorResponse | ExecuteActionConfigResponse; |
+1
-1
| { | ||
| "name": "@picahq/toolkit", | ||
| "version": "0.5.0", | ||
| "version": "0.6.0", | ||
| "description": "Pica tools for the Vercel AI SDK", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
198377
0.52%2396
1.4%