RunAgent supports any Python-based AI agent framework or custom implementation. This guide shows how to adapt your existing code or build custom agents for deployment.
# test_agent.pyimport pytestfrom agent import invoke, streamdef test_invoke(): result = invoke({"query": "test"}) assert "response" in resultdef test_stream(): chunks = list(stream({"query": "test"})) assert len(chunks) > 0def test_error_handling(): result = invoke({}) # Missing required field assert "error" in result or "response" in result