mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-28 18:19:22 +00:00
Some checks failed
* feat(tools): add WaitTool for pausing on long-running jobs Agents that kick off out-of-band work (a sandbox build, a deployment, an async API job) have no way to let clock time pass: they either poll in a tight loop or give up before the work finishes. WaitTool pauses for a given number of seconds, with an optional reason echoed back for traces. A single call waits at most max_seconds (default 300, configurable). Longer requests are clamped to the cap and the result says so, so the model calls again rather than failing. Sync and async execution are both implemented; stdlib only, no new dependencies. The tool description spells out when to reach for it (builds, deploys, batch jobs, async polling, backoff) and when not to, so models pick it up for the right reason. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * fix(tools): enforce non-negative wait on positional calls, fix doc snippets BaseTool.run() skips args_schema validation when called with positional arguments, so tool.run(-5) reached time.sleep(-5) and failed with an unrelated error. _resolve_duration now enforces the seconds >= 0 contract itself, covered for both run() and arun(). Docs and README examples are now self-contained: check_build_status_tool is defined with the @tool decorator instead of referenced out of nowhere, and the async example awaits inside asyncio.run() rather than at top level. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * docs: point the wait tool card at the edge path Unprefixed links resolve against the default docs version (v1.15.7), where the wait tool page does not exist, so the card 404'd in the broken link check. Prefixing with /edge matches how other edge pages link. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * fix(tools): never cache waits and keep the advertised cap accurate Two issues from review, both confirmed against the code. Waits inherited the default cache_function, which always allows caching. With crew cache enabled, a repeat call with the same arguments returned "Waited N seconds." straight from the cache without sleeping, turning a poll-wait-check loop into a busy loop. WaitTool now declares a cache_function that always refuses. The description advertising the cap was only rebuilt when max_seconds reached __init__ without an explicit description. Passing both (as a platform building from tool.specs.json init params would), calling model_validate, or assigning max_seconds left the text claiming 300 seconds while clamping to something else. A model_validator now derives the description from max_seconds on construction, validation, and assignment, and leaves a caller-supplied description untouched. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * fix(tools): reject NaN waits and pluralize single-second results _resolve_duration now rejects NaN with its own message instead of letting time.sleep raise "Invalid value NaN (not a number)" from a positional call. Infinity keeps clamping to the cap like any other oversized wait. Result and description text no longer says "1 seconds". Tests use the public WaitTool().description as the baseline rather than reaching for module-private helpers. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
65 lines
2.3 KiB
Plaintext
65 lines
2.3 KiB
Plaintext
---
|
|
title: "Overview"
|
|
description: "Automate workflows and integrate with external platforms and services"
|
|
icon: "face-smile"
|
|
mode: "wide"
|
|
---
|
|
|
|
These tools enable your agents to automate workflows, integrate with external platforms, and connect with various third-party services for enhanced functionality.
|
|
|
|
## **Available Tools**
|
|
|
|
<CardGroup cols={2}>
|
|
<Card title="Apify Actor Tool" icon="spider" href="/en/tools/automation/apifyactorstool">
|
|
Run Apify actors for web scraping and automation tasks.
|
|
</Card>
|
|
|
|
<Card title="Composio Tool" icon="puzzle-piece" href="/en/tools/automation/composiotool">
|
|
Integrate with hundreds of apps and services through Composio.
|
|
</Card>
|
|
|
|
<Card title="Multion Tool" icon="window-restore" href="/en/tools/automation/multiontool">
|
|
Automate browser interactions and web-based workflows.
|
|
</Card>
|
|
|
|
<Card title="Wait Tool" icon="hourglass-half" href="/edge/en/tools/automation/waittool">
|
|
Pause before re-checking a long-running job such as a build or deployment.
|
|
</Card>
|
|
|
|
<Card title="Zapier Actions Adapter" icon="bolt" href="/en/tools/automation/zapieractionstool">
|
|
Expose Zapier Actions as CrewAI tools for automation across thousands of apps.
|
|
</Card>
|
|
</CardGroup>
|
|
|
|
## **Common Use Cases**
|
|
|
|
- **Workflow Automation**: Automate repetitive tasks and processes
|
|
- **API Integration**: Connect with external APIs and services
|
|
- **Data Synchronization**: Sync data between different platforms
|
|
- **Process Orchestration**: Coordinate complex multi-step workflows
|
|
- **Third-party Services**: Leverage external tools and platforms
|
|
|
|
```python
|
|
from crewai_tools import ApifyActorTool, ComposioTool, MultiOnTool
|
|
|
|
# Create automation tools
|
|
apify_automation = ApifyActorTool()
|
|
platform_integration = ComposioTool()
|
|
browser_automation = MultiOnTool()
|
|
|
|
# Add to your agent
|
|
agent = Agent(
|
|
role="Automation Specialist",
|
|
tools=[apify_automation, platform_integration, browser_automation],
|
|
goal="Automate workflows and integrate systems"
|
|
)
|
|
```
|
|
|
|
## **Integration Benefits**
|
|
|
|
- **Efficiency**: Reduce manual work through automation
|
|
- **Scalability**: Handle increased workloads automatically
|
|
- **Reliability**: Consistent execution of workflows
|
|
- **Connectivity**: Bridge different systems and platforms
|
|
- **Productivity**: Focus on high-value tasks while automation handles routine work
|