Repository navigation
feat(native-sdk): LlmCall.messages(...) to send a conversation history - #196
Open
chrishagglund-ship-it wants to merge 2 commits into
Open
chrishagglund-ship-it wants to merge 2 commits into
chrishagglund-ship-it wants to merge 2 commits into
Conversation
llm() could only send one user message (prompt, as userInput), so workflow
code had no way to give the model a multi-turn conversation. messages(...)
sets the LLM_CHAT_COMPLETE input the server already accepts: a list of
{role, message}, oldest first. With messages the server ignores userInput.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… ref The WAIT for awaitCondition took its numbered reference as its name (condition, condition_2, ...). The UI folds a Java loop's passes by call site, type and name, so in a loop each wait was drawn as a new step while the loop's other calls folded into one. It is now named "condition", as sleep() is "sleep" and as CodeReader names it; the reference is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why it was needed: a chat needs the model to receive the real conversation as separate user and assistant turns. The native SDK's llm() builder on Viren's branch had only .model(), .system(), .prompt(), .retries() and .as(). .prompt(text) sets the task input userInput, and the server turns that into a single user message. So workflow code had no way to send a history.
Also:
awaitCondition's WAIT is now namedconditionwhatever its ref, so the UI folds it across Java loop passes like the loop's other calls (it was drawn as a newcondition_Nbox every pass).🤖 Generated with Claude Code