Skip to content

Conversation

areeb1501
Copy link

Fixes #41

Copy link
Collaborator

@bbatha bbatha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add dedicated error types and add tests

Comment on lines 268 to 269
poll_interval: int = 5,
timeout: int | None = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be float not int

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've modified this to float.

@areeb1501
Copy link
Author

@bbatha can you please review the changes and test cases and share your comments on the same?

Comment on lines 178 to 181
except TimeoutError as e:
print(f"\n⏱️ Timeout: {e}")
except RuntimeError as e:
print(f"\n❌ Error: {e}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These need to be the new types you introduced

Copy link
Collaborator

@bbatha bbatha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very close could you just make sure the example is updated with the new exception types.

@areeb1501
Copy link
Author

Very close could you just make sure the example is updated with the new exception types.

I've replaced all instances of generic execution error types with the newly created ones.

@areeb1501
Copy link
Author

@bbatha can you please take a look at the new changes? I've updated the error types in the example.

@bbatha
Copy link
Collaborator

bbatha commented Oct 22, 2025

There's a lint issue still @areeb1501 can you make sure to run /scripts/format

@areeb1501
Copy link
Author

@bbatha I've run that script. Can you please check and approve the remaining workflows?

@bbatha
Copy link
Collaborator

bbatha commented Oct 23, 2025

The linter appears to be picking up one last type error could you make sure that is resolved?

@areeb1501
Copy link
Author

@bbatha I have made the changes. Can you please take a look at this and approve the remaining workflows?

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.

Create a helper function to poll for knowledge base indexing completion

2 participants