Skip to content

@Flow.model decorator to convert function into CallableModel#171

Open
NeejWeej wants to merge 48 commits intomainfrom
nk/auto_deps_auto_callable_model
Open

@Flow.model decorator to convert function into CallableModel#171
NeejWeej wants to merge 48 commits intomainfrom
nk/auto_deps_auto_callable_model

Conversation

@NeejWeej
Copy link
Copy Markdown
Collaborator

@NeejWeej NeejWeej commented Jan 5, 2026

No description provided.

Nijat Khanbabayev added 6 commits December 31, 2025 03:56
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
…c_context_v2

Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
@NeejWeej NeejWeej changed the base branch from main to nk/add_dynamic_context_v2 January 5, 2026 00:22
@NeejWeej NeejWeej force-pushed the nk/auto_deps_auto_callable_model branch from e93a9c4 to b7fe3d9 Compare January 5, 2026 01:30
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
@NeejWeej NeejWeej force-pushed the nk/auto_deps_auto_callable_model branch from b7fe3d9 to 989e278 Compare January 5, 2026 01:44
Nijat Khanbabayev added 4 commits January 4, 2026 21:09
…switching out attributes at runtime

Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
@NeejWeej NeejWeej force-pushed the nk/auto_deps_auto_callable_model branch from 167e462 to 504dd96 Compare March 16, 2026 22:29
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 16, 2026

Test Results

863 tests  +212   861 ✅ +212   2m 8s ⏱️ +25s
  1 suites ±  0     2 💤 ±  0 
  1 files   ±  0     0 ❌ ±  0 

Results for commit 7917433. ± Comparison against base commit e2ef462.

♻️ This comment has been updated with latest results.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 16, 2026

Codecov Report

❌ Patch coverage is 91.34140% with 315 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.74%. Comparing base (e2ef462) to head (7917433).

Files with missing lines Patch % Lines
ccflow/flow_model.py 83.86% 97 Missing and 66 partials ⚠️
ccflow/tests/test_flow_model.py 94.76% 82 Missing and 2 partials ⚠️
ccflow/_flow_model_binding.py 89.81% 21 Missing and 12 partials ⚠️
ccflow/tests/test_callable.py 90.56% 15 Missing ⚠️
ccflow/context.py 70.27% 7 Missing and 4 partials ⚠️
ccflow/tests/test_flow_context.py 98.07% 4 Missing ⚠️
ccflow/callable.py 93.33% 1 Missing and 1 partial ⚠️
ccflow/evaluators/common.py 97.70% 2 Missing ⚠️
ccflow/tests/evaluators/test_common.py 98.36% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #171      +/-   ##
==========================================
- Coverage   96.00%   94.74%   -1.26%     
==========================================
  Files         140      145       +5     
  Lines        9839    13458    +3619     
  Branches      568      870     +302     
==========================================
+ Hits         9446    12751    +3305     
- Misses        275      505     +230     
- Partials      118      202      +84     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@NeejWeej NeejWeej changed the base branch from nk/add_dynamic_context_v2 to main March 17, 2026 09:06
Nijat Khanbabayev added 10 commits March 17, 2026 05:36
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
@NeejWeej NeejWeej marked this pull request as ready for review April 6, 2026 20:35
Nijat Khanbabayev added 6 commits April 9, 2026 13:50
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
…ecorated functions

Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
@NeejWeej NeejWeej changed the title Nk/auto deps auto callable model @Flow.model decorator to convert functions into CallableModel's Apr 13, 2026
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
@NeejWeej NeejWeej changed the title @Flow.model decorator to convert functions into CallableModel's @Flow.model decorator to convert function into CallableModel Apr 13, 2026
Nijat Khanbabayev added 4 commits April 13, 2026 12:08
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
@NeejWeej NeejWeej force-pushed the nk/auto_deps_auto_callable_model branch 2 times, most recently from d22ffc4 to 0121702 Compare April 16, 2026 18:35
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
@NeejWeej NeejWeej force-pushed the nk/auto_deps_auto_callable_model branch from 0121702 to 22c86f1 Compare April 16, 2026 18:39
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
@NeejWeej NeejWeej force-pushed the nk/auto_deps_auto_callable_model branch from b6f38cf to 1bc0a86 Compare April 17, 2026 07:31
@ptomecek
Copy link
Copy Markdown
Collaborator

Is this ready for another (final) review?

@NeejWeej
Copy link
Copy Markdown
Collaborator Author

Is this ready for another (final) review?

Not yet, I'm planning on doing another pass myself, first, then I'll leave a comment here asking for a final review.

Signed-off-by: Nijat K <nijat.khanbabayev@gmail.com>
Signed-off-by: Nijat K <nijat.khanbabayev@gmail.com>
Signed-off-by: Nijat K <nijat.khanbabayev@gmail.com>
Signed-off-by: Nijat K <nijat.khanbabayev@gmail.com>
Signed-off-by: Nijat K <nijat.khanbabayev@gmail.com>
Signed-off-by: Nijat K <nijat.khanbabayev@gmail.com>
@NeejWeej NeejWeej force-pushed the nk/auto_deps_auto_callable_model branch from 128a6b4 to 7917433 Compare April 28, 2026 08:32
@NeejWeej
Copy link
Copy Markdown
Collaborator Author

@ptomecek This is ready for another review. I created an internal module to keep the shared binding logic used for auto_context on normal CallableModels and @Flow.model generated models, and edited the PR to minimize touching existing, working code.

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.

2 participants