Skip to content

Add Events (Like Tool Usage, Thinking, etc.) to Agent API and Return Message Types #392

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 44 commits into from
Jul 11, 2025

Conversation

JSv4
Copy link
Collaborator

@JSv4 JSv4 commented Jun 8, 2025

Initial stab at exposing thoughts, tool use, and content back to frontend for more modern chat experience.

@JSv4 JSv4 linked an issue Jun 8, 2025 that may be closed by this pull request
Copy link

codecov bot commented Jun 8, 2025

Codecov Report

Attention: Patch coverage is 85.40773% with 34 lines in your changes missing coverage. Please review.

Project coverage is 90.02%. Comparing base (33dfbf0) to head (2f77f0e).
Report is 95 commits behind head on main.

Files with missing lines Patch % Lines
opencontractserver/annotations/models.py 77.52% 20 Missing ⚠️
opencontractserver/corpuses/models.py 90.00% 7 Missing ⚠️
opencontractserver/llms/agents/agent_factory.py 82.92% 7 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #392      +/-   ##
==========================================
- Coverage   91.28%   90.02%   -1.26%     
==========================================
  Files         309      323      +14     
  Lines       15805    17451    +1646     
==========================================
+ Hits        14427    15711    +1284     
- Misses       1378     1740     +362     
Files with missing lines Coverage Δ
opencontractserver/annotations/json_types.py 100.00% <100.00%> (ø)
...server/annotations/migrations/0033_noterevision.py 100.00% <100.00%> (ø)
...conversations/migrations/0003_chatmessage_state.py 100.00% <100.00%> (ø)
opencontractserver/conversations/models.py 93.22% <100.00%> (+1.06%) ⬆️
...corpus_md_description_corpusdescriptionrevision.py 100.00% <100.00%> (ø)
opencontractserver/llms/agents/core_agents.py 83.04% <ø> (-4.16%) ⬇️
...encontractserver/llms/agents/llama_index_agents.py 92.05% <ø> (+3.39%) ⬆️
...encontractserver/llms/agents/pydantic_ai_agents.py 70.63% <ø> (-14.93%) ⬇️
opencontractserver/llms/agents/timeline_schema.py 100.00% <ø> (ø)
...ontractserver/llms/agents/timeline_stream_mixin.py 43.47% <ø> (ø)
... and 28 more

... and 6 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 33dfbf0...2f77f0e. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

JSv4 added 23 commits June 9, 2025 22:18
…ions and guidelines. Introduce new async tools for document summary, notes retrieval, and text extraction. Update error handling in core tools to return default messages when no summary is available.
…ar in annotator. Added tests for corpus home.
@JSv4 JSv4 merged commit 2f77f0e into main Jul 11, 2025
9 of 13 checks passed
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.

Add Thinking Tokens and Conversation Lines
1 participant