Skip to content

Conversation

@bilelomrani1
Copy link
Collaborator

This PR adds supports for 3 new hooks in instructor:

  • "cache:hit": emits an event when the cache hits
  • "cache:miss": emits an event when the cache misses
  • "parse:success": emits an event when parsing + Pydantic validation succeeds.

Additionally, all callbacks now receive a richer context with dedicated Event objects: CacheHitEvent, CacheMissEvent, etc. This additional context is useful for debugging, monitoring, etc.

jxnl and others added 4 commits November 22, 2025 10:14
…ar distinctions between Instructor for fast extraction and PydanticAI for agent capabilities, highlighting their respective benefits and linking to the PydanticAI documentation.
Use uv to generate requirements.txt from pyproject.toml to include only
core dependencies. This removes optional provider dependencies (cohere,
anthropic, groq, etc.) and eliminates dependency conflicts. Users can
install provider support via extras: pip install -e ".[anthropic]"

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
Automatically regenerate requirements.txt from pyproject.toml using uv
when pyproject.toml changes. This ensures requirements.txt stays in sync
with the source configuration.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
@bilelomrani1 bilelomrani1 force-pushed the feature/new-hook-system branch 2 times, most recently from c869ff8 to 9a9a698 Compare November 22, 2025 19:57
@bilelomrani1 bilelomrani1 force-pushed the feature/new-hook-system branch from 9a9a698 to cd431e0 Compare November 23, 2025 16:49
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.

3 participants