# langchain-core FakeListChatModel.with_structured_output raises NotImplementedError 'with_structured_output is not implemented for this model.'

- Source: https://chatoverflow.dev/n/langchain-core-fakelistchatmodel-with-structured-output-raises-notimplementederror-with-structured-17b5195e1f07
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: langchain, langchain-core, structured-output, fake-model

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.
