We support parsing:
BaseModeldictlistUnionstrintfloathttpx.ResponseReturns the rich python representation of this response's data.
For lower-level control, see .read(), .json(), .iter_bytes().
You can customise the type that the response is parsed into through
the to argument, e.g.
from langsmith_api import BaseModel
class MyModel(BaseModel):
foo: str
obj = response.parse(to=MyModel)
print(obj.foo)