Create a concise, 3-5 word title with an emoji as a title for the chat history, in the…
- User
Create a concise, 3-5 word title with an emoji as a title for the chat history, in the given language. Suitable Emojis for the summary can be used to enhance understanding but avoid quotation marks or special formatting. RESPOND ONLY WITH THE TITLE TEXT.
Examples of titles: 📉 Stock Market Trends 🍪 Perfect Chocolate Chip Recipe Evolution of Music Streaming Remote Work Productivity Tips Artificial Intelligence in Healthcare 🎮 Video Game Development Insights
<chat_history> USER: from letta import create_client from letta.schemas.memory import ChatMemory """ Make sure you run the Letta server before running this example.
letta server""" def main(): # Connect to the server as a user client = create_client(base_url="https://letta.prtl.cc") # list available configs on the server llm_configs = client.list_llm_configs() print(f"Available LLM configs: {llm_configs}") embedding_configs = client.list_embedding_configs() print(f"Available embedding configs: {embedding_configs}") # Create an agent agent_state = client.create_agent( name="my_agent", memory=ChatMemory(human="My name is Sarah.", persona="I am a friendly AI."), embedding_config=embedding_configs[0], llm_config=llm_configs[0], ) print(f"Created agent: {agent_state.name} with ID {str(agent_state.id)}") # Send a message to the agent print(f"Created agent: {agent_state.name} with ID {str(agent_state.id)}") response = client.user_message(agent_id=agent_state.id, message="Whats my name?") print(f"Recieved response:", response.messages) # Delete agent client.delete_agent(agent_id=agent_state.id) print(f"Deleted agent: {agent_state.name} with ID {str(agent_state.id)}") if name == "main": main() ASSISTANT:
</chat_history> - Assistant
🤖 Letta AI Agent Setup