org.llm4s.agent.graph.toolloop
Members list
Type members
Classlikes
A reviewer's answer. Edit runs the call with new arguments, recording them in the assistant message first.
A reviewer's answer. Edit runs the call with new arguments, recording them in the assistant message first.
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
The question an approval interrupt asks: one tool call, from one assistant message.
The question an approval interrupt asks: one tool call, from one assistant message.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Who asked for an approval. Both kinds resume at the same approval node.
Who asked for an approval. Both kinds resume at the same approval node.
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A tool the loop can call. Stage 0 prototype of the agent-level tool contract: (#1271) replaces it with the typed, schema-validated AgentTool[A]. approved is true when a human approved this call, so a tool that asks for approval must not ask again.
A tool the loop can call. Stage 0 prototype of the agent-level tool contract: (#1271) replaces it with the typed, schema-validated AgentTool[A]. approved is true when a human approved this call, so a tool that asks for approval must not ask again.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
An operation on the message history, applied to the committed value in commit order.
An operation on the message history, applied to the committed value in commit order.
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Messages.type
The model call: the conversation so far to the next assistant message.
The model call: the conversation so far to the next assistant message.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A conversation message with a stable, graph-owned id. Core org.llm4s.llmconnect.model.Message stays id-free; ids exist so operations can name the message they change, and are derived from the task that wrote the message so a re-run produces the same ids.
A conversation message with a stable, graph-owned id. Core org.llm4s.llmconnect.model.Message stays id-free; ids exist so operations can name the message they change, and are derived from the task that wrote the message so a re-run produces the same ids.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Decides each call before it runs - the policy-middleware stand-in until (#1271)'s AgentMiddleware.
Decides each call before it runs - the policy-middleware stand-in until (#1271)'s AgentMiddleware.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ToolCallPolicy.type
The model/tool loop as a graph - the Stage 0 proof of runtime-owned tool results and resumable approval ((#1269)):
The model/tool loop as a graph - the Stage 0 proof of runtime-owned tool results and resumable approval ((#1269)):
input -> model --fan-out, one task per call--> call-tool --(dynamic join "tool-batch")--> collect -> model
\--suspend--> approval --/
- Each call is its own task: policy first, then the tool. A policy
RequireApprovaland a tool'sNeedsApprovalboth suspend the call with an ApprovalRequest and resume at the oneapprovalnode, whose continuation fills that call's slot in the batch barrier. - The loop, not the tool, records exactly one ToolResult per call - for success, failure, denial, rejection and unknown tools alike; the results key refuses a second one.
collectruns only when the barrier releases, checks every call of the batch has exactly one result, and appends theToolMessages in call order. The model never sees a partial batch.- The model node re-checks the history with
Message.validateConversationbefore every call.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
What a tool did. Tools return content, never ToolMessages: the loop writes every result message.
What a tool did. Tools return content, never ToolMessages: the loop writes every result message.
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
The result the loop wrote for one call, waiting for the batch barrier.
The result the loop wrote for one call, waiting for the batch barrier.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all