Skip to content

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

359 B
Raw Blame
import { ValueBuilder } from './ValueBuilder';
import type { Writer } from './Writer';

export class ArrayValue extends ValueBuilder {
  private items: ValueBuilder[] = [];

  add(item: ValueBuilder): this {
    this.items.push(item);
    return this;
  }

  write(writer: Writer): void {
    writer.write('[').writeJoined(', ', this.items).write(']');
  }
}