Module: TurnKit::Id
- Defined in:
- lib/turnkit/id.rb
Constant Summary collapse
- PREFIXES =
{ conversation: "conv", message: "msg", turn: "turn", tool_execution: "tool" }.freeze
Class Method Summary collapse
Class Method Details
.generate(type) ⇒ Object
14 15 16 17 |
# File 'lib/turnkit/id.rb', line 14 def generate(type) prefix = PREFIXES.fetch(type) "#{prefix}_#{SecureRandom.hex(12)}" end |