threads-conversations
Installation
SKILL.md
Threads & Conversations
Group conversation turns into threads via thread_id. Each turn = one trace; shared thread_id = one thread.
Wiring thread_id
@opik.track(entrypoint=True)
def handle_message(session_id: str, message: str) -> str:
opik.update_current_trace(thread_id=session_id)
return generate_response(session_id, message)
No natural session ID? Use str(uuid.uuid4()) generated once per session.