mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
fix
This commit is contained in:
@@ -37,7 +37,7 @@ class ApifyActorsTool(BaseTool):
|
|||||||
print(f"URL: {result['metadata']['url']}")
|
print(f"URL: {result['metadata']['url']}")
|
||||||
print(f"Content: {result.get('markdown', 'N/A')[:100]}...")
|
print(f"Content: {result.get('markdown', 'N/A')[:100]}...")
|
||||||
"""
|
"""
|
||||||
actor_tool: _ApifyActorsTool = Field(description="Apify Actor Tool")
|
actor_tool: '_ApifyActorsTool' = Field(description="Apify Actor Tool")
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
@@ -67,10 +67,10 @@ class ApifyActorsTool(BaseTool):
|
|||||||
"name": actor_tool.name,
|
"name": actor_tool.name,
|
||||||
"description": actor_tool.description,
|
"description": actor_tool.description,
|
||||||
"args_schema": actor_tool.args_schema,
|
"args_schema": actor_tool.args_schema,
|
||||||
|
"actor_tool": actor_tool,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self.actor_tool = actor_tool
|
|
||||||
|
|
||||||
def _run(self, run_input: Dict[str, Any]) -> List[Dict[str, Any]]:
|
def _run(self, run_input: Dict[str, Any]) -> List[Dict[str, Any]]:
|
||||||
"""Run the Actor tool with the given input.
|
"""Run the Actor tool with the given input.
|
||||||
|
|||||||
Reference in New Issue
Block a user