mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-12 12:59:07 +00:00
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>
This commit is contained in:
@@ -14,6 +14,7 @@ EXPECTED_ALL = [
|
||||
"SimpleJsonOutputParser",
|
||||
"XMLOutputParser",
|
||||
"JsonOutputParser",
|
||||
"PydanticOutputParser",
|
||||
]
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user