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

Function print_prompt

evi/evi-python-function-calling/utils.py:3–7  ·  view source on GitHub ↗

Print a formatted message with a timestamp.

(text: str)

Source from the content-addressed store, hash-verified

1import datetime
2
3def print_prompt(text: str) -> None:
4 """Print a formatted message with a timestamp."""
5 now = datetime.datetime.now(tz=datetime.timezone.utc)
6 now_str = now.strftime("%H:%M:%S")
7 print(f"[{now_str}] {text}")
8
9def extract_top_n_emotions(emotion_scores: dict, n: int) -> dict:
10 """Extract the top N emotions based on confidence scores."""

Callers 1

on_messageMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected