- Added the missing
timeimport inperplexity/emailnator.py.
- Updated the parsing logic to follow the new three-level JSON structure returned by the API.
- Extracted the
answerfield from theFINALstep payload. - Captured
chunksso streaming consumers can reconstruct the answer. - Wrapped the parsing flow with defensive
try/exceptblocks to avoid crashes. - Added field validation before accessing nested data.
- Ensured that empty chunk lists now return an empty dictionary instead of
None.
- Updated the synchronous client's
stream_response()method to use the new parser. - Updated synchronous chunk iteration to surface parsed answers consistently.
- Updated the asynchronous client's
stream_response()method to mirror the new parser. - Updated asynchronous chunk iteration for consistent behavior with the sync client.
- Manual Emailnator account creation
- Basic unauthenticated searches
- Streaming search (79 chunks)
- Follow-up searches
- Text file upload
- Asynchronous client issuing three queries in parallel