✨ 🔬 uuid.ts
This commit is contained in:
@@ -25,3 +25,4 @@ export function createAgentId(label?: string): AgentId {
|
|||||||
const suffix = randomBytes(8).toString('hex')
|
const suffix = randomBytes(8).toString('hex')
|
||||||
return (label ? `a${label}-${suffix}` : `a${suffix}`) as AgentId
|
return (label ? `a${label}-${suffix}` : `a${suffix}`) as AgentId
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user