Skip to content

feat(client): add session pooling for connection reuse#153

Merged
pulvedu merged 2 commits into
masterfrom
feat/TAV-4105-session-pooling
Jan 28, 2026
Merged

feat(client): add session pooling for connection reuse#153
pulvedu merged 2 commits into
masterfrom
feat/TAV-4105-session-pooling

Conversation

@tinosattavily
Copy link
Copy Markdown
Contributor

Summary

  • Add requests.Session() for HTTP connection pooling, reducing TCP/TLS handshake overhead on repeated API calls
  • Add close() method and context manager support (with TavilyClient() as client:) for proper resource cleanup
  • Add defensive setdefault() for response key normalization in search() and extract()
  • Remove deprecated get_company_info() method
  • Bump version to 0.7.20

Test plan

  • Unit tests pass (pytest tests/ - 21 passed)
  • Local manual tests pass (search, extract, crawl, map, context manager, session reuse)
  • QA smoke tests pass (13 passed)
  • QA regression tests pass (98 passed, 10 failed due to API behavior mismatches unrelated to this change)

Closes TAV-4105

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@tinosattavily tinosattavily added feature New feature or enhancement priority-high High priority task size-s Small change labels Jan 28, 2026
@cursor
Copy link
Copy Markdown

cursor Bot commented Jan 28, 2026

You have run out of free Bugbot PR reviews for this billing cycle. This will reset on February 21.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@pulvedu pulvedu merged commit ee51a24 into master Jan 28, 2026
7 checks passed
@pulvedu pulvedu deleted the feat/TAV-4105-session-pooling branch January 28, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or enhancement priority-high High priority task size-s Small change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants