Skip to content

fix: make Agent.prompt/embed generate_later perform correctly#347

Open
false200 wants to merge 1 commit into
activeagents:mainfrom
false200:fix/direct-generation-later
Open

fix: make Agent.prompt/embed generate_later perform correctly#347
false200 wants to merge 1 commit into
activeagents:mainfrom
false200:fix/direct-generation-later

Conversation

@false200

Copy link
Copy Markdown

Summary

Fixes Agent.prompt(...).generate_later and Agent.embed(...).embed_later crashing when the job runs. GenerationJob now accepts the direct generation kwargs and rebuilds DirectGeneration instead of calling a fake __direct_*__ action.

Closes #346

Test plan

  • bundle exec ruby bin/test test/features/parameterized_direct_test.rb -n "/performs the job/"
  • Confirm Agent.prompt(message: "...").generate_later performs without ArgumentError
  • Confirm Agent.embed(input: "...").embed_later performs without ArgumentError

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.

Agent.prompt(...).generate_later (and embed_later) fails when the job executes

1 participant