Fetches chat events, generates a transcript, and saves it to a file.
(client: AsyncHumeClient, chat_id: str)
| 44 | |
| 45 | |
| 46 | async def get_chat_transcript(client: AsyncHumeClient, chat_id: str) -> None: |
| 47 | """Fetches chat events, generates a transcript, and saves it to a file.""" |
| 48 | chat_events = await fetch_all_chat_events(client, chat_id) |
| 49 | transcript = construct_transcript(chat_events) |
| 50 | save_transcript_to_file(transcript, chat_id) |
| 51 | |
| 52 | |
| 53 | def validate_webhook_headers(payload: str, headers: Headers) -> None: |
no test coverage detected