You can also check this cookbook in colab here
ACI.dev is the open source platform that connects your AI agents to 600+ tool integrations. Integrate ACI.dev with CAMEL agents to let them seamlessly interact with these external apps.
β Star us on Github, join our Discord or follow our X
Goal: Star a repository on GitHub with natural language & CAMEL Agent
Integrate ACI with CAMEL agents to let them seamlessly interact with external apps.
Ensure you have the necessary packages installed and connect your GitHub account to allow your CAMEL-AI agents to utilize GitHub functionalities on ACI.dev.
# Run command
%pip install "camel-ai[all]==0.2.59"
Prepare your environment by initializing necessary imports from CAMEL.
from camel.agents import ChatAgent
from camel.models import ModelFactory
from camel.toolkits import ACIToolkit
from camel.types import ModelPlatformType, ModelType
Provide the API key and the LINKED_ACCOUNT_OWNER from ACI.dev to the SDK.
import os
from getpass import getpass
# Prompt for the API key securely
openai_api_key = getpass('Enter your API key: ')
os.environ["OPENAI_API_KEY"] = openai_api_key
# Prompt for the ACI key securely
aci_api_key = getpass('Enter your ACI API key: ')
os.environ["ACI_API_KEY"] = aci_api_key
# Prompt for your linked account owner id securely
linked_account_owner_id = getpass('Enter your linked account owner id: ')
os.environ["LINKED_ACCOUNT_OWNER"] = linked_account_owner_id
# Get the value of the environment variable "LINKED_ACCOUNT_OWNER"
LINKED_ACCOUNT_OWNER = os.getenv("LINKED_ACCOUNT_OWNER")
# Check if the environment variable was set
if LINKED_ACCOUNT_OWNER is None:
raise ValueError("LINKED_ACCOUNT_owner environment variable is not set.")
# Initialize ACI Toolkit with GitHub integration
aci_toolkit = ACIToolkit(linked_account_owner_id=LINKED_ACCOUNT_OWNER)
# Create default model instance
model = ModelFactory.create(
model_platform=ModelPlatformType.DEFAULT,
model_type=ModelType.DEFAULT,
)
# Set up chat agent with GitHub tools
chat_agent = ChatAgent(
model=model,
tools=aci_toolkit.get_tools(), # GitHub tools enabled
)
# Execute GitHub star command
response = chat_agent.step("star the repo camel-ai/camel")
print(response)
Thatβs everything: Got questions about π« CAMEL-AI? Join us on Discord! Whether you want to share feedback, explore the latest in multi-agent systems, get support, or connect with others on exciting projects, weβd love to have you in the community! π€
Check out some of our other work:
-
π« Creating Your First CAMEL Agent free Colab
-
Graph RAG Cookbook free Colab
-
π§ββοΈ Create A Hackathon Judge Committee with Workforce free Colab
-
π₯ 3 ways to ingest data from websites with Firecrawl & CAMEL free Colab
-
π¦₯ Agentic SFT Data Generation with CAMEL and Mistral Models, Fine-Tuned with Unsloth free Colab
Thanks from everyone at π« CAMEL-AI
β Star us on GitHub, join our Discord, or follow us on X
Responses are generated using AI and may contain mistakes.