Other FrameworksUsing Composio With LettaCopy pageStar A Repository on GitHub In this example, we will use Letta Agent to star a repository on GitHub using Composio Tools 1Install PackagesPythonJavaScript$pip install letta-client composio_langchain2Import Libraries & Configure ClientPythonJavaScript1from letta_client import Letta2from composio_langchain import Action, ComposioToolSet, App34client = Letta(base_url="http://localhost:8283")3Connect Your GitHub AccountYou need to have an active GitHub Integration. Learn how to do this hereCLIPythonJavaScript$composio login >composio add github4Add GitHub action to ClientAdding tools to the clientPythonJavaScript1tool = client.tools.add_composio_tool(composio_action_name=Action.GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER.name)5Create the agentPythonJavaScript1agent = client.agents.create(2 name="GitHub Agent",3 memory_blocks=[4 {"label": "persona", "value": "I am a helpful assistant"}5 ],6 model="openai/gpt-4o",7 embedding="openai/text-embedding-ada-002", 8 tool_ids=[tool.id]9)6Execute the AgentPythonJavaScript1response = client.agents.messages.create(2 agent_id=agent.id,3 messages=[4 {5 "role": "user",6 "content": "Star the github repo composioHQ/composio/"7 }8 ]9)10for message in response.messages:11 print(message)