-
Notifications
You must be signed in to change notification settings - Fork 1.4k
format transcript logs #3708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: theo/v1.3
Are you sure you want to change the base?
format transcript logs #3708
Conversation
| "type": item.type, | ||
| "id": item.id, | ||
| "role": item.role, | ||
| "content": [content for content in item.content if isinstance(content, str)], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we include summaries of the non-text content? dropping this might remove useful context
|
I think we should use the JSON protobuf instead of arbitrary json |
|
like? |
empty value is raising an error
|
|
||
| def _to_rfc3339(value: int | float | datetime) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be chat_history
| }, | ||
| ) | ||
| chat_logger.emit( | ||
| LogRecord( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please include the options. this context may be useful for debugging
| "name": item.name, | ||
| "call_id": item.call_id, | ||
| "output": output, | ||
| "is_error": item.is_error, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can remove the created_at key. it's already in the log ts
| header_msg = proto_metrics.MetricsRecordingHeader( | ||
| room_id=room_id, | ||
| enable_user_data_training=report.enable_user_data_training | ||
| room_id=room_id, enable_user_data_training=report.enable_user_data_training |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should also upload this in the report format for training/long term storage
No description provided.