litellm/tests/test_litellm/managed_agents/adapters
Ishaan Jaffer 6500a4b5d8
test(v2 managed agents): adapter tests for model object split, stateful streaming, permission auto-grant
send_message:
  - assert {providerID, modelID} object body (not string)
  - 'openrouter/anthropic/claude-3' splits on first '/' only
  - models without '/' omit the field entirely
  - model=None omits the field

list_messages: assert {info, parts} envelopes normalize to MessageRow,
  with reasoning/step-start/step-finish filtered out of content and the
  combined providerID/modelID showing up as our model string.

stream_events: assert text deltas route through partID -> type tracking,
  the partID map persists across multiple message.part.updated events,
  session.idle is enriched with the tracked assistant message_id, and
  permission.asked triggers a fire-and-forget POST to
  /session/:sid/permissions/:per_id with {response:'once'}.
2026-05-07 10:48:36 -07:00
..
__init__.py test(v2 managed agents): adapter tests package init 2026-05-07 10:06:56 -07:00
test_normalization.py test(v2 managed agents): update normalization tests for real opencode wire shapes 2026-05-07 10:48:29 -07:00
test_opencode.py test(v2 managed agents): adapter tests for model object split, stateful streaming, permission auto-grant 2026-05-07 10:48:36 -07:00