medium95%
create_agent discards state_schema subclass in inferred return type
langchain.agents.create_agent's type annotations hardcode AgentState[ResponseT] for the state_schema parameter and return type, erasing the specific subclass passed by the user and causing type mismatch errors for downstream code.
