exa-js 2.4.0 → 2.5.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -59,6 +59,22 @@ const result = await exa.search("interesting articles about space", {
59
59
  });
60
60
  ```
61
61
 
62
+ ```ts
63
+ const deepResult = await exa.search("Who leads OpenAI's safety team?", {
64
+ type: "deep",
65
+ answer: true,
66
+ outputSchema: {
67
+ type: "object",
68
+ properties: {
69
+ leader: { type: "string" },
70
+ title: { type: "string" },
71
+ sourceCount: { type: "number" }
72
+ },
73
+ required: ["leader", "title"]
74
+ }
75
+ });
76
+ ```
77
+
62
78
  ## Contents
63
79
 
64
80
  Get clean text, highlights, or summaries from any URL.