Skip to content

Add pending status in WebsetStatus and WebsetSearchStatus enum#175

Open
Shivam010 wants to merge 2 commits into
exa-labs:masterfrom
Shivam010:patch-1
Open

Add pending status in WebsetStatus and WebsetSearchStatus enum#175
Shivam010 wants to merge 2 commits into
exa-labs:masterfrom
Shivam010:patch-1

Conversation

@Shivam010
Copy link
Copy Markdown

@Shivam010 Shivam010 commented Feb 18, 2026

Summary

Adds the missing pending status to the WebsetStatus and WebsetSearchStatus enum. We are receiving the pending status in the webset create API, but the SDK was missing this value, causing the ValidationError when validating the response.

Error:

2 validation errors for Webset
status
  Input should be 'idle', 'running' or 'paused' [type=enum, input_value='pending', input_type=str]
    For further information visit https://errors.pydantic.dev/2.12/v/enum
searches.0.status
  Input should be 'created', 'running', 'completed' or 'canceled' [type=enum, input_value='pending', input_type=str]
    For further information visit https://errors.pydantic.dev/2.12/v/enum

Trace: puts it right at the model_validate call with response.status containing pending

        Returns:
            Webset: The created webset.
        """
        response = await self.request("/v0/websets", data=params, options=options)
        return Webset.model_validate(response) <<<<<

API reference does say pending status is possible

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