MaximAnthropicMessages
__init__
logging message interactions.
create_non_stream
Special headers:
- x-maxim-trace-id: Optional trace ID for associating with existing trace.
- x-maxim-generation-name: Optional name for the generation.
Notes:
If logging fails, the method will still return the API response
but will log a warning message.
create_stream
Special headers:
- x-maxim-trace-id: Optional trace ID for associating with existing trace.
- x-maxim-generation-name: Optional name for the generation.
handles logging of streaming events.
Notes:
The method returns a StreamWrapper that automatically processes
stream chunks and logs the final result when the stream ends.
create
Returns:
Notes:
The method automatically detects streaming mode via the ‘stream’ parameter
in kwargs and routes accordingly.
stream
Returns: