
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Composio enables CrewAI agents to connect with numerous tools, making it easy for these agents to interact with external applications seamlessly.
Start by installing Composio CrewAI and connecting your GitHub account to enable GitHub functionalities for your agents.
pip install composio_crewai
composio-cli add github # Connect your GitHub account
composio-cli show-apps # Check available applications
Automate GitHub interactions, such as starring a repository, using natural language commands through a CrewAI Agent.
Prepare your environment by importing the necessary packages for CrewAI and setting up your language model.
from crewai import Agent, Task
from langchain_openai import ChatOpenAI
# Initialize the language model with your OpenAI API key
llm = ChatOpenAI(openai_api_key="sk-<OPENAI KEY>")
Initialize the Composio toolset for interacting with GitHub.
from composio_crewai import ComposioToolSet, Action, App
# Initialize the toolset with GitHub application
tools = ComposioToolSet(apps=[App.GITHUB])
Configure and execute the CrewAI agent to perform GitHub actions.
crewai_agent = Agent(
role='Github Agent',
goal="You take action on Github using Github APIs",
backstory="You are an AI agent responsible for taking actions on Github on users' behalf using Github APIs",
verbose=True,
tools=tools,
llm=llm
)
# Define the task
task = Task(
description="Star a repo composiohq/composio on GitHub",
agent=crewai_agent,
expected_output="if the star happened"
)
# Execute the task
task.execute()
Verify the agent's actions and responses to ensure the task was completed successfully.
> Entering new CrewAgentExecutor chain...
> I need to star the repository "composiohq/composio" on GitHub.
> {'execution_details': {'executed': True}, 'response_data': ''}
> Finished chain.
toolsGithubCreateIssue = ComposioToolSet(actions=[Action.GITHUB_CREATE_ISSUE])
toolsAsanaGithub = ComposioToolSet(apps=[App.ASANA, App.GITHUB])
FAQs
Use Composio to get an array of tools with your CrewAI agent.
We found that composio-crewai demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.