Skip to content

Add funding check workflow - #88

Merged
slint merged 4 commits into
inveniosoftware:mainfrom
mairasalazar:workflow-grant-check
Jul 30, 2026
Merged

Add funding check workflow#88
slint merged 4 commits into
inveniosoftware:mainfrom
mairasalazar:workflow-grant-check

Conversation

@mairasalazar

@mairasalazar mairasalazar commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

❤️ Thank you for your review!

  • feat(workflow): add a funding check workflow

Add a new check_funding_relevance activity. The new activity assesses
whether a record's title and description match a grant description,
guided by a caller-supplied rule. Wires up the corresponding Temporal
workflow and registers it under the check_funding_relevance key.

  • refactor(extraction): move shared LLM agent builder

Move the LLM agent construction logic from extract_metadata into a
reusable _llm.build_agent helper, and use it in the existing metadata
extraction activity.

  • fix(workflow): add propagate_lagfuse_context

Adds the context and the propagate_lagfuse_context to the check funding
relevance activity, passing the context from the check funding relevance
workflow. Also add a guard for too sparse metadata, bypassing the LLM
calls if the title + description are below 30 characters, and a test for
this guard.

mairasalazar and others added 3 commits July 14, 2026 14:10
Move the LLM agent construction logic from `extract_metadata` into a
reusable `_llm.build_agent` helper, and use it in the existing metadata
extraction activity.
Add a new `check_funding_relevance` activity. The new activity assesses
whether a record's title and description match a grant description,
guided by a caller-supplied rule. Wires up the corresponding Temporal
workflow and registers it under the `check_funding_relevance` key.
@ptamarit
ptamarit force-pushed the workflow-grant-check branch from dc221d9 to 148e567 Compare July 14, 2026 13:47
Adds the context and the propagate_lagfuse_context to the check funding
relevance activity, passing the context from the check funding relevance
workflow. Also add a guard for too sparse metadata, bypassing the LLM
calls if the title + description are below 30 characters, and a test for
this guard.
@mairasalazar
mairasalazar force-pushed the workflow-grant-check branch from 3d7fc1b to 7299e81 Compare July 21, 2026 15:46
@mairasalazar
mairasalazar marked this pull request as ready for review July 22, 2026 11:34
@slint
slint merged commit 2ac08a2 into inveniosoftware:main Jul 30, 2026
3 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.

3 participants