from_refusal(
cls,
refusal: RefusalContentBlock,
*,
raw_message: BaseMessage
) -> ModelRefusalError| Name | Type | Description |
|---|---|---|
refusal* | RefusalContentBlock | The refusal block from the response's |
raw_message* | BaseMessage | The model response that contained the refusal. |
Create a ModelRefusalError from a standard refusal block.