nemo_gym.base_responses_api_agent
nemo_gym.base_responses_api_agent
Module Contents
Classes
API
Bases: BaseServer
Bases: BaseRunServerInstanceConfig
Bases: BaseResponsesAPIAgent, AggregateMetricsMixin, SimpleServer
Default: same RewardProfiler aggregation as resources server. Override to proxy.
A model-server base URL with the per-rollout capture-correlation prefix applied.
base_url_for_run is the base-URL counterpart of url_path_for_run for SDK-style
harnesses that configure a client once instead of prefixing each call: same gating, applied
to a server root URL (append the API-version suffix afterwards).
Resolve a model-server URL with an optional rollout prefix.
Per-rollout capture id for a run-request (its task/rollout indices).
None when model-call capture (observability) is disabled or the body carries no indices, so callers apply no correlation prefix in either case.
Carry an inbound /ng-rollout/<id> self-call prefix onto a downstream url_path.
Agents whose model calls happen inside responses() receive the correlation id as the
rollout_id path parameter of the prefixed self-call route; this re-applies it to the
outgoing model call. Unprefixed requests pass through unchanged.
A downstream url_path with the per-rollout capture-correlation prefix applied.
Returns /ng-rollout/<id><url_path> when observability is enabled and the run body
carries task/rollout indices; otherwise url_path unchanged. Use for calls made while
handling /run — both direct model-server calls and self-calls to /v1/responses
(the prefixed self-call route carries the id into responses()).