Skip to main content

Module codex_namespaces

Module codex_namespaces 

Source
Expand description

Reads the Codex tool namespaces that a Responses request decoder records.

Codex groups tools into namespace containers. The Responses codec in switchyard-translation flattens each child to <namespace>__<tool> and stores the mapping in the request’s ProviderExtensions. Code that does not depend on the translation crate uses these helpers to recover the tool name.

Constants§

NAMESPACE_SEPARATOR
Separator between a namespace and a tool name in a qualified wire name.
TOOL_NAMESPACES_KEY
Request extension key holding the qualified-name to namespace mapping.

Functions§

split_qualified_name
Splits a qualified wire name back into its tool name and namespace.
tool_namespaces
Reads the mapping back off a request’s extensions.