UNPKG

acp-sdk

Version:

Agent Communication Protocol SDK

28 lines (26 loc) 931 B
import * as z from 'zod'; import { AgentManifest, RunMode, AgentName, Message, SessionId, Event, AwaitResume, Run } from './models.js'; const PingResponse = z.object({}); const AgentsListResponse = z.object({ agents: z.array(AgentManifest) }); const AgentsReadResponse = AgentManifest; const RunCreateRequest = z.object({ agent_name: AgentName, session_id: z.optional(SessionId), input: z.array(Message), mode: RunMode }); const RunCreateResponse = Run; const RunEventsListResponse = z.object({ events: z.array(Event) }); const RunResumeRequest = z.object({ await_resume: AwaitResume, mode: RunMode }); const RunResumeResponse = Run; const RunReadResponse = Run; export { AgentsListResponse, AgentsReadResponse, PingResponse, RunCreateRequest, RunCreateResponse, RunEventsListResponse, RunReadResponse, RunResumeRequest, RunResumeResponse }; //# sourceMappingURL=schemas.js.map //# sourceMappingURL=schemas.js.map