Skip to content

feat(native-sdk): LlmCall.messages(...) to send a conversation history - #196

Open
chrishagglund-ship-it wants to merge 2 commits into
design/native-workflowsfrom
feat/native-llm-messages
Open

chrishagglund-ship-it wants to merge 2 commits into
design/native-workflowsfrom
feat/native-llm-messages

Conversation

@chrishagglund-ship-it

@chrishagglund-ship-it chrishagglund-ship-it commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

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 named condition whatever its ref, so the UI folds it across Java loop passes like the loop's other calls (it was drawn as a new condition_N box every pass).

🤖 Generated with Claude Code

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

No deployments
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.

1 participant