@sourcegraph/the-orb-is-awake
Version:
TypeScript SDK for Amp CLI - Build custom AI agents with Amp's capabilities
21 lines • 839 B
TypeScript
/**
* Amp TypeScript SDK
*
* This SDK provides a TypeScript interface to the Amp CLI, allowing you to
* run Amp programmatically in Node.js applications. It wraps the Amp CLI
* with the --stream-json flag to provide structured output.
*/
import { type ExecuteOptions, type StreamMessage, type UserInputMessage } from './types.js';
/**
* Execute a command with Amp CLI and return an async iterator of messages
*
* @param options Execute configuration including prompt and options
* @returns Async iterator of stream messages from Amp CLI
*/
export declare function execute(options: ExecuteOptions): AsyncIterable<StreamMessage>;
/**
* Helper function to create streaming input messages
*/
export declare function createUserMessage(text: string): UserInputMessage;
export * from './types.js';
//# sourceMappingURL=index.d.ts.map