Start interacting with your agents, tools, and knowledge.
from relevanceai import RelevanceAI client = RelevanceAI() my_agents = client.agents.list_agents() my_agents
[Agent(agent_id="xxxxxxxx", name="Scott Henderson's SEO & Growth Marketing Agent"), Agent(agent_id="xxxxxxxx", name="Rosh Singh's Sales & Research Qualifier Agent")]
agent_id
my_agent = client.agents.retrieve_agent(agent_id="xxxxxxxx") message = "Let's qualify this lead:\n\nName: Ethan Trang\n\nCompany: Relevance AI\n\nEmail: ethan@relevanceai.com" triggered_task = client.tasks.trigger_task( agent_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", message=message ) triggered_task
TriggeredTask(conversation_id="xxxxxxxx")
my_tools = client.tools.list_tools() my_tools
[Tool(tool_id="xxxxxxxx", title="Search Website"), Tool(tool_id="xxxxxxxx", title="Extract LinkedIn Data")]
tool_id
my_tool = client.tools.retrieve_tool(tool_id="xxxxxxxx") params = {"text": "This is text", "number": 245} tool_response = client.tools.trigger_tool( tool_id="xxxxxxxx", params=params ) tool_response
ToolOutput(output="...", state="...")