Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

------------------------------------------------------------------------------

This product includes software developed as part of the slime project
(https://github.com/THUDM/slime), licensed under the Apache License, Version 2.0.

The rollout gateway (src/agentcore_rl_toolkit/rollout_gateway/) adapts code from
slime, notably:
  - trajectory.py  — TrajectoryManager, TurnRecord, MessageNode, and the
                     CLEAN/FORK drift classification, adapted from
                     slime/agent/trajectory.py (made torch-free).
  - adapters/      — OpenAIAdapter, AnthropicAdapter, and the shared BaseAdapter
                     pipeline, adapted from slime/agent/adapters/.
  - parsing.py     — output-parsing helpers, adapted from slime/agent/parsing.py.
  - server.py      — background-thread serving mechanics and FilteredAccessLogger,
                     adapted from slime/agent/aiohttp_threaded.py.

------------------------------------------------------------------------------

This product includes data developed as part of the TRL project
(https://github.com/huggingface/trl), licensed under the Apache License,
Version 2.0.

The rollout gateway's response-schema registry
(src/agentcore_rl_toolkit/rollout_gateway/response_schemas.py) vendors the
response-schema dicts from trl/chat_template_utils.py and derives its
chat-template hash table from trl/chat_templates/*.jinja (baseline commit
7073af94).
