(label?: string)
| 22 | * Example: aa3f2c1b4d5e6f7a8, acompact-a3f2c1b4d5e6f7a8 |
| 23 | */ |
| 24 | export function createAgentId(label?: string): AgentId { |
| 25 | const suffix = randomBytes(8).toString('hex') |
| 26 | return (label ? `a${label}-${suffix}` : `a${suffix}`) as AgentId |
| 27 | } |
| 28 |
no test coverage detected