Exa
Semantic search, page content, cited answers and asynchronous research.
提交非同步研究 Agent 執行。
提交非同步研究任務。提供 query;可選提供 systemPrompt 與 effort(僅支援 minimal)。Idempotency-Key 為必填。HTTP 202 傳回一個任務;以其 id 呼叫對應的 Felo 輪詢端點,直到狀態為 completed、failed 或 cancelled。任務的價格欄位屬於供應商授權與結算中繼資料,並非 Felo 計費記錄。
計費參考
- 計量方式:固定請求計費的參考值。
- 參考請求估算:0.1 美元。
僅供參考的中繼資料,並非帳戶報價、保證價格或消費上限。資源額度並非 Felo 額度。最終費用依 Felo 計費記錄為準。
- 類型: stringIdempotency
- Key 必填去除空白後的 UTF-8 長度必須為 1 到 191 位元組。
- 類型: stringquery必填
去除空白後必須為非空查詢。
- 類型: string | null 列舉effort
僅支援 minimal effort;省略、空值和 null 都會正規化為 minimal。
值- null
- minimal
- 類型: string | nullsystem
Prompt
- 類型: object202
成功
- 類型: string | null 格式: date-timecompleted
At 必填the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- 類型: string | null 格式: date-timecreated
At 必填the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- 類型: string | nullendpoint必填
供應商操作識別碼;請使用文件中提供的 Felo 任務路徑進行輪詢。
- 類型: object | nullerror必填
- code類型: string | null
- message類型: string | null
- 類型: string | nullid必填
- object常數:integration_async_job必填
- output必填
- 類型: object | nullpricing必填
以微美元計的供應商授權與結算中繼資料;不是 Felo 餘額、凍結金額或帳單憑證。
- authorized類型: integer | null
Micros U S D Integer numbers.
- billing類型: string | null
Mode - currency類型: string | null
- final類型: integer | null
Micros U S D Integer numbers.
- 類型: string 列舉status必填值
- queued
- running
- completed
- failed
- cancelled
- 類型: boolean | nulloutput
Expired
application/json - 400
無法處理該要求。請檢查請求參數。
- 401
需要有效的 Felo API 金鑰。
- 402
由於未符合計費要求,要求無法繼續。
- 403
該帳戶無權執行此操作。
- 429
已達到要求或支出上限。
- 502
服務無法完成該要求。
- 503
API 或計費服務暫時無法使用。
- 504
服務在處理要求時逾時。
- default
操作失敗。聯絡 Felo 支援時請保留回應的請求 ID。
curl https://openapi.felo.ai/v1/beta/exa/agent/runs \
--request POST \
--header 'Idempotency-Key: ' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"query": "Find the official documentation for Go"
}'
{
"completedAt": null,
"createdAt": null,
"endpoint": null,
"error": {
"code": null,
"message": null
},
"id": null,
"object": "integration_async_job",
"output": null,
"outputExpired": null,
"pricing": {
"authorizedMicrosUSD": null,
"billingMode": null,
"currency": null,
"finalMicrosUSD": null
},
"status": "queued"
}