Skip to content

Conversation

@qiuosier
Copy link
Member

@qiuosier qiuosier commented Dec 20, 2024

This PR adds two AutoGen loggers:

from ads.llm.autogen.v02.loggers import MetricLogger, SessionLogger 
  • The SessionLogger saves events to a log file and generates report to for users to profile and debug the application.
  • The MetricLogger sends the metrics to OCI monitoring service, allowing users to build dashboards to gain more insights about the application usage.
Screenshot 2024-12-20 at 2 27 56 PM Screenshot 2024-12-20 at 2 28 26 PM Screenshot 2024-12-20 at 2 30 37 PM
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 20, 2024
@qiuosier qiuosier enabled auto-merge (squash) December 20, 2024 19:37
# Freeform data
kwargs: dict = field(default_factory=dict)

def to_dict(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it better to use the built in protocol for conversion to dict? __dict__

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the data attribute is another data class, the build in __dict__ does not seem to convert it to a dict, while the asdict() function will convert it to dict recursively.

@github-actions
Copy link

📌 Cov diff with main:

Coverage-0%

📌 Overall coverage:

Coverage-57.31%

@qiuosier qiuosier merged commit ef20d9a into main Jan 6, 2025
11 checks passed
@github-actions
Copy link

github-actions bot commented Jan 6, 2025

📌 Cov diff with main:

Coverage-0%

📌 Overall coverage:

Coverage-57.28%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

3 participants