{"version":3,"file":"list-research.mjs","names":[],"sources":["../../src/actions/list-research.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaListResearchInput: z.ZodTypeAny = z.object({\n  limit: z.number().int().default(10).describe(\"The number of results to return (1–50, default 10).\").optional(),\n  cursor: z.string().describe(\"The cursor to paginate through the results.\").optional(),\n}).describe(\"Parameters for listing research tasks.\");\nconst ExaListResearch_ResearchEventSchema: z.ZodTypeAny = z.object({\n  type: z.string().describe(\"Type of the event.\").optional(),\n  message: z.string().describe(\"Event message.\").optional(),\n  timestamp: z.number().describe(\"Timestamp when the event occurred.\").optional(),\n}).describe(\"Event information for research tasks.\");\nconst ExaListResearch_ResearchOutputSchema: z.ZodTypeAny = z.object({\n  steps: z.array(z.unknown()).describe(\"Steps taken during research.\").optional(),\n  answer: z.string().describe(\"The research answer.\").optional(),\n  sources: z.array(z.unknown()).describe(\"Sources used for research.\").optional(),\n}).describe(\"Output from completed research.\");\nconst ExaListResearch_CostDollarsSchema: z.ZodTypeAny = z.object({\n  llm: z.number().describe(\"LLM cost in dollars.\").optional(),\n  total: z.number().describe(\"Total cost in dollars.\").optional(),\n  search: z.number().describe(\"Search cost in dollars.\").optional(),\n}).describe(\"Cost information for completed research.\");\nconst ExaListResearch_ResearchItemSchema: z.ZodTypeAny = z.object({\n  error: z.string().describe(\"Error message if the research task failed.\").optional(),\n  model: z.string().describe(\"The model used for the research task.\").optional(),\n  events: z.array(ExaListResearch_ResearchEventSchema).describe(\"List of events associated with this research task.\").optional(),\n  output: ExaListResearch_ResearchOutputSchema.nullable().optional(),\n  status: z.string().describe(\"The status of the research task (pending, processing, completed, failed).\"),\n  createdAt: z.number().describe(\"When the research task was created (Unix timestamp).\"),\n  researchId: z.string().describe(\"The unique identifier for the research task.\"),\n  costDollars: ExaListResearch_CostDollarsSchema.nullable().optional(),\n  instructions: z.string().describe(\"The instructions for the research task.\"),\n}).describe(\"One research task record.\");\nexport const ExaListResearchOutput: z.ZodTypeAny = z.object({\n  data: z.array(ExaListResearch_ResearchItemSchema).describe(\"The list of research task records.\"),\n  hasMore: z.boolean().describe(\"Whether there are more results to paginate through.\"),\n  nextCursor: z.string().describe(\"The cursor for the next page of results, if any.\").optional(),\n}).describe(\"Response model for listing research tasks.\");\n\nexport const exaListResearch = action(\"EXA_LIST_RESEARCH\", {\n  slug: \"exa-list-research\",\n  name: \"List research tasks\",\n  description: \"Tool to retrieve a paginated list of your research tasks. Use when you need to view or monitor research jobs with cursor-based pagination.\",\n  input: ExaListResearchInput,\n  output: ExaListResearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,OAAO;CACzD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,SAAS,qDAAqD,EAAE,SAAS;CAC7G,QAAQ,EAAE,OAAO,EAAE,SAAS,6CAA6C,EAAE,SAAS;AACtF,CAAC,EAAE,SAAS,wCAAwC;AACpD,MAAM,sCAAoD,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,EAAE,SAAS,oBAAoB,EAAE,SAAS;CACzD,SAAS,EAAE,OAAO,EAAE,SAAS,gBAAgB,EAAE,SAAS;CACxD,WAAW,EAAE,OAAO,EAAE,SAAS,oCAAoC,EAAE,SAAS;AAChF,CAAC,EAAE,SAAS,uCAAuC;AACnD,MAAM,uCAAqD,EAAE,OAAO;CAClE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,SAAS,8BAA8B,EAAE,SAAS;CAC9E,QAAQ,EAAE,OAAO,EAAE,SAAS,sBAAsB,EAAE,SAAS;CAC7D,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,SAAS,4BAA4B,EAAE,SAAS;AAChF,CAAC,EAAE,SAAS,iCAAiC;AAC7C,MAAM,oCAAkD,EAAE,OAAO;CAC/D,KAAK,EAAE,OAAO,EAAE,SAAS,sBAAsB,EAAE,SAAS;CAC1D,OAAO,EAAE,OAAO,EAAE,SAAS,wBA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