Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Add example health check function
JBD17c1fc67841f
diff --git a/README.md b/README.mdindex d10be51..ea8bece 100644--- a/README.md+++ b/README.md@@ -384,8 +384,16 @@ def process(content):data=f"Python processed: {content.data.upper()}")+def health_check():+ """Health check function that always returns healthy"""+ return True, "OK", {}+# Create and start the agent-agent = Agent(agent_id="python-agent", process_func=process)+agent = Agent(+ agent_id="python-agent",+ process_func=process,+ health_check_func=health_check+)agent.serve(port=50051)```diff --git a/python/example_agent.py b/python/example_agent.pyindex 51bf821..bcd73e9 100644--- a/python/example_agent.py+++ b/python/example_agent.py@@ -19,6 +19,15 @@ def process(content):)+def health_check():+ """Health check function that always returns healthy"""+ return True, "OK", {}++if __name__ == "__main__":- agent = Agent(agent_id="python-agent", process_func=process)+ agent = Agent(+ agent_id="python-agent",+ process_func=process,+ health_check_func=health_check+ )agent.serve(port=50051)