Skip to content

Refactor API: Move automate to agent client and remove extract.schema#7

Merged
MrTravisB merged 7 commits intomainfrom
travis/agent
Nov 20, 2025
Merged

Refactor API: Move automate to agent client and remove extract.schema#7
MrTravisB merged 7 commits intomainfrom
travis/agent

Conversation

@MrTravisB
Copy link
Copy Markdown
Collaborator

Summary

  • Moves automate functionality behind a new agent client (tabs.agent.automate())
  • Removes extract.schema() method entirely
  • Updates all documentation, examples, and tests to reflect the new API

Changes

  • New Agent Client: Created Agent and AgentSync classes to handle automation
  • API Simplification: Removed extract.schema() method and SchemaResponse type
  • Updated Documentation: README, examples, and docstrings now reflect the new API
  • Test Coverage: All 160 tests pass with 91% coverage

Migration Guide

Before

async for event in tabs.automate.execute(task="...", url="..."):
    ...

schema = await tabs.extract.schema(url="...", instructions="...")

After

async for event in tabs.agent.automate(task="...", url="..."):
    ...

# extract.schema() removed - use predefined schemas instead

🤖 Generated with Claude Code

@MrTravisB MrTravisB merged commit 4355717 into main Nov 20, 2025
6 checks passed
@MrTravisB MrTravisB deleted the travis/agent branch November 20, 2025 19:46
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