UNPKG

@azowl/agentops-sdk

Version:

AgentOps REST client and local task execution SDK for Node.js

18 lines (15 loc) • 564 B
import type { AgentReceipt, AgentToolTask } from './agent.js'; export interface LocalQueueTask extends AgentToolTask { id: string; status: 'queued' | 'running' | 'completed' | 'failed' | 'blocked' | 'unknown'; createdAt: string; updatedAt: string; receipt: AgentReceipt | null; } export class LocalQueueClient { constructor(options?: { baseUrl?: string; directory?: string; token?: string }); readonly tasks: { create(input: AgentToolTask & { requestId?: string }): Promise<LocalQueueTask>; get(id: string): Promise<LocalQueueTask>; }; }