Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

[exa-py]: add effort param for deep search type

Summary

Adds the effort parameter to the search() method for both Exa and AsyncExa classes. This parameter allows users to configure the effort level when using type="deep" search:

  • "medium" (default): Faster, cheaper searches using deep_lite service
  • "high": Maximum quality using full deep service

This corresponds to the backend changes in exa-labs/monorepo#11290.

Review & Testing Checklist for Human

  • Verify backend PR exa-labs/monorepo#11290 is merged before releasing this SDK update
  • Test exa.search("query", type="deep", effort="high") works correctly against the API
  • Confirm the parameter is correctly converted to camelCase in the API request (should be effort in both cases)

Notes

  • The validation in SEARCH_OPTIONS_TYPES accepts any string for effort, matching the existing pattern for other enum-like params (e.g., type). The actual validation happens server-side.
  • No tests added - the change follows existing patterns and is straightforward

Link to Devin run: https://app.devin.ai/sessions/6c21ac37bc6f4dbf8c37d31f7fbbc388
Requested by: William Li ([email protected])

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant