mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-12 14:02:47 +00:00
Some checks failed
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Mark stale issues and pull requests / stale (push) Has been cancelled
Build uv cache / build-cache (3.10) (push) Has been cancelled
Build uv cache / build-cache (3.11) (push) Has been cancelled
Build uv cache / build-cache (3.12) (push) Has been cancelled
Build uv cache / build-cache (3.13) (push) Has been cancelled
- pypdf ~6.7.4 → ~6.7.5 (CVE: inefficient ASCIIHexDecode stream decoding) - Add urllib3>=2.6.3 override (CVE: decompression-bomb bypass on redirects) - ruff 0.14.7 → 0.15.1, mypy 1.19.0 → 1.19.1, pre-commit 4.5.0 → 4.5.1 - types-regex 2024.11.6 → 2026.1.15, boto3-stubs 1.40.54 → 1.42.40 - Auto-fixed 13 lint issues from new ruff rules Co-authored-by: Greyson LaLonde <greyson.r.lalonde@gmail.com>
31 lines
691 B
Python
31 lines
691 B
Python
import os
|
|
|
|
from crewai import Agent, Crew, Task
|
|
from multion_tool import MultiOnTool # type: ignore[import-not-found]
|
|
|
|
|
|
os.environ["OPENAI_API_KEY"] = "Your Key"
|
|
|
|
multion_browse_tool = MultiOnTool(api_key="Your Key")
|
|
|
|
# Create a new agent
|
|
Browser = Agent(
|
|
role="Browser Agent",
|
|
goal="control web browsers using natural language ",
|
|
backstory="An expert browsing agent.",
|
|
tools=[multion_browse_tool],
|
|
verbose=True,
|
|
)
|
|
|
|
# Define tasks
|
|
browse = Task(
|
|
description="Summarize the top 3 trending AI News headlines",
|
|
expected_output="A summary of the top 3 trending AI News headlines",
|
|
agent=Browser,
|
|
)
|
|
|
|
|
|
crew = Crew(agents=[Browser], tasks=[browse])
|
|
|
|
crew.kickoff()
|