Develop with Native SDK
🚀 Develop and customize new agents
class TestAgent:
def __init__(self, agent_name):
self.agent_name = agent_name
self.messages = []
def run(self, task_input):
self.messages.append({"role": "user", "content": task_input})
llm_response = llm_chat(
agent_name=self.agent_name,
messages=self.messages,
base_url="http://localhost:8000"
)
final_result = llm_response["response"]["response_message"]
return final_resultStep 3: Run and test your agents
Last updated