You can also check this cookbook in colab hereACI.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 XGoal: 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.
Provide the API key and the LINKED_ACCOUNT_OWNER from ACI.dev to the SDK.
Copy
import osfrom getpass import getpass# Prompt for the API key securelyopenai_api_key = getpass('Enter your API key: ')os.environ["OPENAI_API_KEY"] = openai_api_key# Prompt for the ACI key securelyaci_api_key = getpass('Enter your ACI API key: ')os.environ["ACI_API_KEY"] = aci_api_key# Prompt for your linked account owner id securelylinked_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 setif LINKED_ACCOUNT_OWNER is None: raise ValueError("LINKED_ACCOUNT_owner environment variable is not set.")
Copy
# Initialize ACI Toolkit with GitHub integrationaci_toolkit = ACIToolkit(linked_account_owner_id=LINKED_ACCOUNT_OWNER)# Create default model instancemodel = ModelFactory.create( model_platform=ModelPlatformType.DEFAULT, model_type=ModelType.DEFAULT,)# Set up chat agent with GitHub toolschat_agent = ChatAgent( model=model, tools=aci_toolkit.get_tools(), # GitHub tools enabled)
Copy
# Execute GitHub star commandresponse = 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: