Package-level declarations
Properties
Hint message instructing the LLM that it must call a tool to continue, used with nodeCallLLMWithHint.
Functions
Creates a new Prompt with text appended to the first system message. If no system message exists, the prompt is returned unchanged.
Util function for investigating the behaviour of the system on model context overflow. It is very approximate and should be used mainly for preliminary experiments.
Matches any assistant turn and forwards its text — the empty string when the turn carries none.
Renders the prompt's messages into a human-readable, newline-separated string, each prefixed with its index and message role. Intended for logging and debugging.
Create a new Prompt object with the same messages, except for the system prompt.
Appends every result of a tool batch as one user message, then asks the LLM to continue.