litellm/tests/_support
shrey kharbanda c9e344432c feat(mcp): opt-in per-server memory of upstream tool output schemas
A caller that sends no session id gets a fresh upstream session per call, and the SDK
lists the upstream's tools on each one to check structured output. When a server sets
mcp_info.output_schema_cache_ttl_seconds above 0, remember the first listing page's
output schemas per upstream credential for that long and preload them into the session.
A remembered schema that rejects the result triggers one fresh list before the verdict,
so a loosened schema is still repaired. A schema tightened inside the window is not
enforced until the entry expires, which is why the setting defaults to 0 (off) and
rejects non-numeric, negative and non-finite values.

Also fixes the shared fake upstream, which crashed on a tools/list without params and
let the validating test pass for the wrong reason.
2026-11-06 18:16:57 -08:00
..
__init__.py fix(params): stop stream_chunk_size reaching provider request bodies (#42664) 2026-09-23 10:27:47 -07:00
clock_loops.py fix(proxy)!: end a chat completions stream with an error event when a guardrail blocks mid-stream (#46953) 2026-10-17 18:00:12 -07:00
mcp_count_tool_upstream.py feat(mcp): opt-in per-server memory of upstream tool output schemas 2026-11-06 18:16:57 -08:00
native_database.py refactor(proxy): inject database repositories through per-repository dependencies (#48507) 2026-10-30 22:57:54 +00:00
stream_chunk_size.py fix(params): validate stream_chunk_size once, before any provider call (#43222) 2026-09-26 23:01:20 +00:00