core[minor], openai[minor], langchain[patch]: BaseLanguageModel.with_structured_output #17302)
```python
class Foo(BaseModel):
bar: str
structured_llm = ChatOpenAI().with_structured_output(Foo)
```
---------
Co-authored-by: Erick Friis <erick@langchain.dev>