diff --git a/sdk-python/examples/agent_runtime_usage.py b/sdk-python/examples/agent_runtime_usage.py index e997d44f..0a331035 100644 --- a/sdk-python/examples/agent_runtime_usage.py +++ b/sdk-python/examples/agent_runtime_usage.py @@ -14,9 +14,11 @@ from agentcube import AgentRuntimeClient +AGENT_NAME = "simple-agentruntime" + # first time: it will create a new pod agent_client_v1 = AgentRuntimeClient( - agent_name="my-agent", + agent_name=AGENT_NAME, router_url="http://localhost:8081", namespace="default", verbose=True, @@ -30,7 +32,7 @@ # second time: it will try to reuse the pod created before agent_client_v2 = AgentRuntimeClient( - agent_name="my-agent", + agent_name=AGENT_NAME, router_url="http://localhost:8081", namespace="default", session_id=agent_client_v1.session_id, @@ -44,4 +46,3 @@ ) print(result_v2) -