Compare commits

..

5 Commits

Author SHA1 Message Date
Lucas Gomide
ea0a4c6bea fix: ensure Agent is able to load a list of Tools dynamically 2025-06-20 11:44:28 -03:00
Lucas Gomide
65af0173fe Merge branch 'main' into lg-agent-initialize 2025-06-19 17:21:16 -03:00
Lucas Gomide
d0e9964f2d Merge branch 'main' into lg-agent-initialize 2025-06-19 13:56:39 -03:00
Lucas Gomide
a00dd73614 Merge branch 'main' into lg-agent-initialize 2025-06-19 12:57:36 -03:00
Lucas Gomide
b63a8f738c feat: support to initialize a tool from defined Tool attributes 2025-06-17 18:31:57 -03:00
2 changed files with 1 additions and 17 deletions

View File

@@ -124,7 +124,7 @@ from crewai_tools import CrewaiEnterpriseTools
enterprise_tools = CrewaiEnterpriseTools(
actions_list=["gmail_find_email"] # only gmail_find_email tool will be available
)
gmail_tool = enterprise_tools["gmail_find_email"]
gmail_tool = enterprise_tools[0]
gmail_agent = Agent(
role="Gmail Manager",

View File

@@ -85,22 +85,6 @@ with MCPServerAdapter(server_params) as mcp_tools:
```
This general pattern shows how to integrate tools. For specific examples tailored to each transport, refer to the detailed guides below.
## Filtering Tools
```python
with MCPServerAdapter(server_params) as mcp_tools:
print(f"Available tools: {[tool.name for tool in mcp_tools]}")
my_agent = Agent(
role="MCP Tool User",
goal="Utilize tools from an MCP server.",
backstory="I can connect to MCP servers and use their tools.",
tools=mcp_tools["tool_name"], # Pass the loaded tools to your agent
reasoning=True,
verbose=True
)
# ... rest of your crew setup ...
```
## Explore MCP Integrations
<CardGroup cols={2}>