Ask a question to get started
Enter to sendā¢Shift+Enter new line
create_chat_error_result( error: Exception, operation: str, model: str, input_tokens: int
error
Exception
The exception that occurred
operation
str
Description of the operation that failed
model
Model name for metadata
input_tokens
int
0
logger_instance
Optional[logging.Logger]
None
Create standardized ChatResult for errors.
Number of input tokens for usage metadata
Specific logger to use (defaults to module logger)