is_anthropic_chat_model(
model: object,
) -> TypeGuard[ChatAnthropic]Return whether model is a langchain_anthropic chat model.
Reads sys.modules rather than importing langchain_anthropic: an instance
of ChatAnthropic implies its module is loaded, and importing it eagerly
would add the anthropic SDK to every deepagents import.