Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | import type { BasicBuilder } from './BasicBuilder'; |
| 2 | import { Writer } from './Writer'; |
| 3 | |
| 4 | export class WellKnownSymbol implements BasicBuilder { |
| 5 | constructor(readonly name: string) {} |
| 6 | write(writer: Writer<undefined>): void { |
| 7 | writer.write('Symbol.').write(this.name); |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | export function wellKnownSymbol(name: string) { |
| 12 | return new WellKnownSymbol(name); |
| 13 | } |
| 14 | |
| 15 | export const toStringTag = wellKnownSymbol('toStringTag'); |