Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions sdk-python/examples/agent_runtime_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the first AgentRuntimeClient instantiation (line 20), consider setting verbose=True here as well. This ensures that debug logs are available for both the initial bootstrapping and the subsequent session reuse, providing a consistent and informative experience for users running the example.

Suggested change
agent_name=AGENT_NAME,
agent_name=AGENT_NAME,
verbose=True,

Copy link
Copy Markdown
Contributor Author

@mrinalchaturvedi27 mrinalchaturvedi27 May 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gemini-code-assist verbose=True is already present in this client initialization below session_id, so I’m leaving this unchanged to avoid duplicating the keyword argument.

router_url="http://localhost:8081",
namespace="default",
session_id=agent_client_v1.session_id,
Expand All @@ -44,4 +46,3 @@
)
print(result_v2)


Loading