medium90%
ChatAnthropic does not propagate metadata.user_id to third-party agent, breaking prompt caching
ChatAnthropic ignores the metadata provided in the invoke config, so the user_id is not sent to the Anthropic API. This prevents prompt caching from working when connecting to third-party agents that require user_id for cache partitioning. The issue can be reproduced by invoking the model with a config containing metadata and observing that the request payload lacks the metadata field.
