mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
fix example
This commit is contained in:
@@ -55,7 +55,7 @@ results = tool.run(run_input={"query": "What is CrewAI?", "maxResults": 5})
|
||||
# Process the results
|
||||
for result in results:
|
||||
print(f"URL: {result['metadata']['url']}")
|
||||
print(f"Content: {result['markdown'][:100]}...") # Snippet of markdown content
|
||||
print(f"Content: {result.get('markdown', 'N/A')[:100]}...") # Snippet of markdown content
|
||||
```
|
||||
|
||||
### Expected output
|
||||
|
||||
@@ -34,8 +34,8 @@ class ApifyActorsTool(BaseTool):
|
||||
|
||||
results = tool.run(run_input={"query": "What is CrewAI?", "maxResults": 5})
|
||||
for result in results:
|
||||
print(result['metadata']['url'])
|
||||
print(result['markdown'])
|
||||
print(f"URL: {result['metadata']['url']}")
|
||||
print(f"Content: {result.get('markdown', 'N/A')[:100]}...")
|
||||
"""
|
||||
actor_tool: _ApifyActorsTool = Field(description="Apify Actor Tool")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user