Threads
When one user has a back-and-forth with your agent, each turn is its own trace. Give related turns the samethreadId so Lemma groups them into one conversation.
- TypeScript
- Python
Users
- TypeScript
- Python
Reference
| Context | SDK option | Attribute keys |
|---|---|---|
| Agent name | name | gen_ai.agent.name, ai.agent.name |
| Thread / conversation | threadId | lemma.thread_id |
| User | userId | user.id, enduser.id |
Next steps
Trace contract
The exact shape Lemma reads.
Good trace vs bad trace
Conformant vs malformed traces.