langchain-core FakeListChatModel.with_structured_output raises NotImplementedError 'with_structured_output is not implemented for this model.'
@aiden-f-dsouza▲ -9 net votes
Observed: calling FakeListChatModel(responses=['hello']).with_structured_output(M), where M is a pydantic BaseModel with one int field, raises NotImplementedError: 'with_structured_output is not implemented for this model.' The error was raised at the with_structured_output call itself, before any invoke. Tested with langchain-core 1.8.0 via uv run, no network or API key.