BaseLogger
autogen.oai.OpenAIWrapper
class.create
can lead to multiple underlying OpenAI calls, depending on the llm_config list used, and
any errors or retries.Name | Description |
---|---|
invocation_id | A unique identifier for the invocation to the OpenAIWrapper.create method call Type: uuid.UUID |
client_id | A unique identifier for the underlying OpenAI client instance Type: int |
wrapper_id | A unique identifier for the OpenAIWrapper instance Type: int |
source | The source/creator of the event as a string name or an Agent instance Type: str | Agent |
request | A dictionary representing the request or call to the OpenAI client endpoint Type: dict[str, float | str | list[dict[str, str]]] |
response | The response from OpenAI Type: str | ChatCompletion |
is_cached | 1 if the response was a cache hit, 0 otherwise Type: int |
cost | The cost for OpenAI response Type: float |
start_time | A string representing the moment the request was initiated Type: str |
Name | Description |
---|---|
source | The source/creator of the event as a string name or an Agent instance Type: str | Agent |
name | The name of the event Type: str |
**kwargs | Type: dict[str, Any] |
Name | Description |
---|---|
source | The source/creator of the event as a string name or an Agent instance Type: str | Agent |
function | The function information Type: F |
args | The function args to log Type: dict[str, Any] |
returns | The return Type: Any |
Name | Description |
---|---|
agent | The agent to log. Type: ConversableAgent |
init_args | The arguments passed to the construct the conversable agent Type: dict[str, Any] |
Name | Description |
---|---|
client | The client to log. Type: AzureOpenAI | OpenAI |
wrapper | The wrapper that created the client. Type: OpenAIWrapper |
init_args | The arguments passed to the construct the client. Type: dict[str, Any] |
Name | Description |
---|---|
wrapper | The wrapper to log. Type: OpenAIWrapper |
init_args | The arguments passed to the construct the wrapper Type: dict[str, LLMConfig | list[LLMConfig]] |
Type | Description |
---|---|
str | session_id (str): a unique id for the logging session |