Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 60 additions & 26 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ volumes:
redis_data:
networks:
activepieces:

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "activepieces",
"version": "0.79.0",
"version": "0.79.1",
"rcVersion": "0.78.0-rc.0",
"packageManager": "bun@1.3.3",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions packages/pieces/community/ai/src/lib/actions/agents/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { dynamicTool, LanguageModel, Tool } from "ai";
import z from "zod";
import { agentUtils } from "./utils";
import { agentOutputBuilder } from "./agent-output-builder";
import { AgentMcpTool, AgentOutputField, AgentTaskStatus, AgentTool, AgentToolType, buildAuthHeaders, isNil, isString, McpProtocol, sanitizeToolName, TASK_COMPLETION_TOOL_NAME } from "@activepieces/shared";
import { AgentMcpTool, AgentOutputField, AgentTaskStatus, AgentTool, AgentToolType, buildAuthHeaders, isNil, isString, McpProtocol, createToolName, TASK_COMPLETION_TOOL_NAME } from "@activepieces/shared";
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js'
import { ActionContext } from "@activepieces/pieces-framework";
import { experimental_createMCPClient as createMCPClient, MCPClient, MCPTransport } from '@ai-sdk/mcp';
Expand Down Expand Up @@ -60,7 +60,7 @@ function flattenMcpServers(
const agentTool = agentMcpTools.find((t) => t.toolName === server.mcpName);

for (const [toolName, fn] of Object.entries(server.tools)) {
const key = sanitizeToolName(`${toolName}`);
const key = createToolName(`${toolName}`);
tools[key] = fn;
if (agentTool) {
keyToAgentTool[key] = agentTool;
Expand Down Expand Up @@ -131,7 +131,7 @@ export async function constructAgentTools(

const toolKeyToAgentTool: Record<string, AgentTool> = {};
for (const agentTool of agentTools.filter(t => t.type !== AgentToolType.MCP)) {
const key = agentTool.type === AgentToolType.FLOW ? sanitizeToolName(agentTool.toolName) : agentTool.toolName;
const key = agentTool.type === AgentToolType.FLOW ? createToolName(agentTool.toolName) : agentTool.toolName;
toolKeyToAgentTool[key] = agentTool;
}
Object.assign(toolKeyToAgentTool, mcpKeyToAgentTool);
Expand Down
4 changes: 2 additions & 2 deletions packages/pieces/community/ai/src/lib/actions/agents/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
McpProperty,
McpPropertyType,
AgentFlowTool,
sanitizeToolName,
createToolName,
} from '@activepieces/shared';
import { z, ZodObject } from 'zod';
import { AuthenticationType, httpClient, HttpMethod } from '@activepieces/pieces-common';
Expand Down Expand Up @@ -108,7 +108,7 @@ export const agentUtils = {
mcpPropertyToSchema(prop),
]),
)
const sanitizedName = sanitizeToolName(tool.toolName)
const sanitizedName = createToolName(tool.toolName)
return {
name: sanitizedName,
description: toolDescription,
Expand Down
18 changes: 18 additions & 0 deletions packages/pieces/community/google-vertexai/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["../../../../.eslintrc.base.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
Loading
Loading