Skip to content

[feat] LLM Based Template Logic Executor#123

Open
devanshi00 wants to merge 1 commit into
accordproject:mainfrom
devanshi00:main
Open

[feat] LLM Based Template Logic Executor#123
devanshi00 wants to merge 1 commit into
accordproject:mainfrom
devanshi00:main

Conversation

@devanshi00
Copy link
Copy Markdown

@devanshi00 devanshi00 commented Mar 25, 2026

Overview

This PR introduces an LLM-based generic logic executor for Accord Project templates. It enables execution of templates even when no logic.ts is provided, using a reasoning-based fallback powered by an LLM.

The goal is to explore a flexible, extensible alternative to traditional TypeScript-based logic while maintaining full backward compatibility.

  • LLM Executor

    • Acts as a fallback or replacement for logic.ts
    • Processes:
      • contract text
      • Concerto models
      • current state
      • incoming request
    • Produces:
      • updated state
      • response object
      • emitted events
  • Execution Modes

    • disabled – default behavior (TypeScript only)
    • fallback – use LLM only if logic.ts is absent/fails
    • force – always use LLM executor
  • Integration

    • Integrated into TemplateArchiveProcessor
    • Seamlessly fits into existing execution pipeline
  • Normalization Layer

    • Ensures outputs conform to Accord runtime expectations:
      • timestamps
      • identifiers
      • ordering
  • Backward Compatibility

    • Existing templates with logic.ts remain unaffected
  • Logging

    • Clear indication of execution path:
      • TypeScript vs LLM

PR Review

@DianaLease @dselman

@mttrbrts
Copy link
Copy Markdown
Member

Thanks for this contribution! Before we can review, please resolve the merge conflicts with the base branch and fix the DCO sign-off.

git fetch origin main
git rebase origin/main --signoff
# Resolve conflicts
git push --force-with-lease

Once the conflicts are resolved and commits are signed off, we'll proceed with the review.


This comment was generated by AI on behalf of @mttrbrts.

@devanshi00 devanshi00 requested a review from a team April 28, 2026 14:37
Signed-off-by: Devanshi Chhatbar <117909426+devanshi00@users.noreply.github.com>
@github-actions github-actions Bot added the maintainer-engaged A maintainer has commented or reviewed this item label May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer-engaged A maintainer has commented or reviewed this item

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants