Use this file to discover all available pages before exploring further.
Agents are AI-powered entities that can understand and respond to messages. Each agent is backed by an LLM provider and can be customized with roles, goals, instructions, and additional features like memory, tools, and RAG.
from lyzr import Studiostudio = Studio(api_key="your-api-key")# Create an agentagent = studio.create_agent( name="Support Bot", provider="gpt-4o", role="Customer support agent", goal="Help customers resolve issues", instructions="Be empathetic, concise, and solution-oriented")# Run the agentresponse = agent.run("I can't login to my account")print(response.response)
def get_weather(city: str) -> str: """Get weather for a city""" return f"72°F in {city}"agent.add_tool(get_weather)response = agent.run("What's the weather in NYC?")