refusal_from_response_error#

Connect a provider and configure retries, credentials, and transport. See the guide.

zett_agent.providers.stop_reasons.refusal_from_response_error(error)[源代码]#

Return the refusal a failed OpenAI Responses stream describes, or None for a plain failure.

参数:

error (Mapping[str, Any])

返回类型:

StopInfo | None