-
-
Save KyMidd/ef7fa0bd4b2aa889df7281cc591dc12e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user_id = user_info_json.get("user", {}).get("name", "unknown_user_id") | |
| session_id = context.log_stream_name | |
| full_conversation = "\n".join([ | |
| content.get("text", "") | |
| for item in conversation | |
| for content in item.get("content", []) | |
| if isinstance(content, dict) and "text" in content | |
| ]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment