Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
ts 15 lines 359 Bytes
Raw
1 import { ValueBuilder } from './ValueBuilder';
2 import type { Writer } from './Writer';
3
4 export class ArrayValue extends ValueBuilder {
5 private items: ValueBuilder[] = [];
6
7 add(item: ValueBuilder): this {
8 this.items.push(item);
9 return this;
10 }
11
12 write(writer: Writer): void {
13 writer.write('[').writeJoined(', ', this.items).write(']');
14 }
15 }