SqliteLogger
autogen.logger.SqliteLogger #
Bases: BaseLogger
Sqlite logger class.
Initialize the SqliteLogger.
PARAMETER | DESCRIPTION |
---|---|
config | Configuration for the logger. |
Source code in autogen/logger/sqlite_logger.py
start #
Source code in autogen/logger/sqlite_logger.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
|
log_chat_completion #
log_chat_completion(invocation_id, client_id, wrapper_id, source, request, response, is_cached, cost, start_time)
Log chat completion.
PARAMETER | DESCRIPTION |
---|---|
invocation_id | Invocation ID. TYPE: |
client_id | Client ID. TYPE: |
wrapper_id | Wrapper ID. TYPE: |
source | Source of the chat completion. |
request | Request for the chat completion. |
response | Response for the chat completion. TYPE: |
is_cached | Whether the response is cached. TYPE: |
cost | Cost of the chat completion. TYPE: |
start_time | Start time of the chat completion. TYPE: |
Source code in autogen/logger/sqlite_logger.py
log_new_agent #
Log new agent.
PARAMETER | DESCRIPTION |
---|---|
agent | Agent to log. TYPE: |
init_args | Initialization arguments of the agent |
Source code in autogen/logger/sqlite_logger.py
log_event #
Log event.
PARAMETER | DESCRIPTION |
---|---|
source | Source of the event. |
name | Name of the event. TYPE: |
**kwargs | Additional arguments for the event. |
Source code in autogen/logger/sqlite_logger.py
log_new_wrapper #
Log new wrapper.
PARAMETER | DESCRIPTION |
---|---|
wrapper | Wrapper to log. TYPE: |
init_args | Initialization arguments of the wrapper |
Source code in autogen/logger/sqlite_logger.py
log_function_use #
Log function use.
PARAMETER | DESCRIPTION |
---|---|
source | Source of the function use. |
function | Function to log. TYPE: |
args | Arguments of the function. |
returns | Returns of the function. TYPE: |
Source code in autogen/logger/sqlite_logger.py
log_new_client #
Log new client.
PARAMETER | DESCRIPTION |
---|---|
client | Client to log. TYPE: |
wrapper | Wrapper of the client. TYPE: |
init_args | Initialization arguments of the client. |