Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 04:45 UTC
| 1 | import { ValueBuilder } from './ValueBuilder'; |
| 2 | import { Writer } from './Writer'; |
| 3 | |
| 4 | export class NamedValue extends ValueBuilder { |
| 5 | #name: string; |
| 6 | |
| 7 | constructor(name: string) { |
| 8 | super(); |
| 9 | this.#name = name; |
| 10 | } |
| 11 | |
| 12 | override write(writer: Writer): void { |
| 13 | writer.write(this.#name); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | export function namedValue(name: string): NamedValue { |
| 18 | return new NamedValue(name); |
| 19 | } |