Skip to content

Commit 316d90b

Browse files
committed
style: add comment explaining or None coercion
1 parent bd877c4 commit 316d90b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agentex/lib/utils/registration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async def register_agent(env_vars: EnvironmentVariables):
5656
"acp_url": full_acp_url,
5757
"acp_type": env_vars.ACP_TYPE,
5858
"principal_context": get_auth_principal(env_vars),
59-
"registration_metadata": registration_metadata or None,
59+
"registration_metadata": registration_metadata or None, # Send null instead of {} when no metadata
6060
}
6161

6262
if env_vars.AGENT_ID:

0 commit comments

Comments
 (0)