Skip to content

Commit 562885d

Browse files
committed
Add suggestions
1 parent e5f2bb3 commit 562885d

File tree

1 file changed

+5
-36
lines changed

1 file changed

+5
-36
lines changed

tools/toolkits/others/apify.mdx

Lines changed: 5 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@
22
title: Apify
33
---
44

5-
This guide demonstrates how to integrate and use [Apify](https://apify.com/actors) Actors within the Agno framework to enhance your AI agents with very powerful data collection capabilities.
5+
This guide demonstrates how to integrate and use [Apify](https://apify.com/actors) Actors within the Agno framework to enhance your AI agents with web scraping, crawling, data extraction, and web automation capabilities.
66

77
## What is Apify?
88

99
[Apify](https://apify.com/) is a platform that provides:
10-
11-
- Data collection services for AI Agents
10+
- Data collection services for AI Agents, specializing in extracting data from social media, search engines, online maps, e-commerce sites, travel portals, or general websites
1211
- A marketplace of ready-to-use Actors (specialized tools) for various data tasks
1312
- Infrastructure to run and monetize our own AI Agents
1413

1514
## Prerequisites
1615

17-
1. Sign up for an Apify account
16+
1. Sign up for an [Apify account](https://console.apify.com/sign-up)
1817
2. Obtain your Apify API token (can be obtained from [Apify](https://docs.apify.com/platform/integrations/api))
1918
3. Install the required packages:
2019

@@ -48,7 +47,7 @@ agent.print_response("What information can you find on https://docs.agno.com/int
4847

4948
## Available Apify Tools
5049

51-
You can easily integrate any Apify Actor as a tool, but we prepared some examples for you:
50+
You can easily integrate any Apify Actor as a tool. Here are some examples:
5251

5352
### 1. RAG Web Browser
5453

@@ -140,37 +139,6 @@ agent.print_response(
140139
)
141140
```
142141

143-
## Implementation Details
144-
145-
Below is a simplified implementation reference for the ApifyTools class. You can find the complete implementation in the source code.
146-
147-
```python
148-
from agno.tools import Toolkit
149-
from apify_client import ApifyClient
150-
from langchain_apify import ApifyActorsTool
151-
152-
class ApifyTools(Toolkit):
153-
def __init__(
154-
self,
155-
actors: Union[str, List[str]] = None,
156-
apify_api_token: Optional[str] = None
157-
):
158-
# Initialize toolkit with Apify API token
159-
super().__init__(name="ApifyTools")
160-
self.apify_api_token = apify_api_token or os.getenv('APIFY_API_TOKEN')
161-
self.client = ApifyClient(self.apify_api_token)
162-
163-
# Register specific Actors if provided
164-
if actors:
165-
actor_list = [actors] if isinstance(actors, str) else actors
166-
for actor_id in actor_list:
167-
self.register_actor(actor_id)
168-
169-
def register_actor(self, actor_id: str) -> None:
170-
# Register an Apify Actor as a function in the toolkit
171-
# Implementation details...
172-
```
173-
174142
## Toolkit Params
175143

176144
| Parameter | Type | Default | Description |
@@ -188,4 +156,5 @@ class ApifyTools(Toolkit):
188156
- [Apify Platform Documentation](https://docs.apify.com)
189157
- [Apify Actor Documentation](https://docs.apify.com/Actors)
190158
- [Apify Store - Browse available Actors](https://apify.com/store)
159+
- [How to build an AI Agent](https://blog.apify.com/how-to-build-an-ai-agent/)
191160
- [Agno Framework Documentation](https://docs.agno.com)

0 commit comments

Comments
 (0)