MCPcopy Create free account
hub / github.com/HumeAI/hume-api-examples / get_chat_transcript

Function get_chat_transcript

evi/evi-python-webhooks/utils.py:46–50  ·  view source on GitHub ↗

Fetches chat events, generates a transcript, and saves it to a file.

(client: AsyncHumeClient, chat_id: str)

Source from the content-addressed store, hash-verified

44
45
46async 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
53def validate_webhook_headers(payload: str, headers: Headers) -> None:

Callers 1

hume_webhook_handlerFunction · 0.90

Calls 3

construct_transcriptFunction · 0.85
save_transcript_to_fileFunction · 0.85
fetch_all_chat_eventsFunction · 0.70

Tested by

no test coverage detected