Writer utilities for logging and instrumentation utilities for tracking ai model interactions.
Name | Description |
---|---|
base_url | Base URL for the Maxim API. |
api_key | API key for authentication. |
repository_id | ID of the repository to write logs to. |
auto_flush | Whether to automatically flush logs periodically. |
flush_interval | Time interval in seconds between automatic flushes. |
is_debug | Whether to enable debug logging. |
raise_exceptions | Whether to raise exceptions or handle them silently. |
Name | Description |
---|---|
base_url | Base URL for the Maxim API. |
api_key | API key for authentication. |
repository_id | ID of the repository to write logs to. |
auto_flush | Whether to automatically flush logs periodically. |
flush_interval | Time interval in seconds between automatic flushes. |
is_debug | Whether to enable debug logging. |
raise_exceptions | Whether to raise exceptions or handle them silently. |
Name | Description |
---|---|
config | Configuration for the LogWriter. |
ValueError
- If auto_flush is enabled but flush_interval is None.Name | Description |
---|---|
str | The repository ID. |
Name | Description |
---|---|
attachment | Attachment object to upload. |
Name | Description |
---|---|
bool | True if running in AWS Lambda, False otherwise. |
Name | Description |
---|---|
logs | List of CommitLog objects to write. |
Exception
- If raise_exceptions is True and writing fails.Exception
- If raise_exceptions is True and an error occurs.Name | Description |
---|---|
bool | True if filesystem is accessible, False otherwise. |
Name | Description |
---|---|
logs | List of CommitLog objects to flush. |
Name | Description |
---|---|
log | CommitLog object to add to the queue. |
ValueError
- If the entity_id is invalid and raise_exceptions is True.