Module agentforge4j.runtime
Package com.agentforge4j.runtime.llm
package com.agentforge4j.runtime.llm
-
ClassDescriptionThe parsed result of a single LLM call: the raw response text plus the parsed list of commands.Fluent builder for
AgentInvocationResult.Drives a single agent invocation: resolves the agent definition, picks the first enabled provider preference, renders the input context as JSON, executes against the resolvedLlmClient, and parses the structured command output.Builder forAgentInvoker.Renders the subset of the shared context exposed to an agent as a JSON object — filtering byContextMapping.inputKeys()when a mapping is provided.ContextValueExtractor<T extends ContextValue>Selects the first provider preference in agent order that is available in the resolver.Observes each completed LLM call: emits aWorkflowEventType.LLM_CALL_COMPLETEDevent and maintains theReservedContextKeys.LLM_TOKENS_TOTALrunning total inWorkflowStatecontext.Typed shape of theWorkflowEventType.LLM_CALL_COMPLETEDevent payload.Raised when the LLM output cannot be parsed as a JSON array ofLlmCommand.Parses raw LLM output text into a list ofLlmCommands, validating each command's type against the agent'sCommandResponseSchemaand required fields before binding.Selects whichProviderPreferenceto use for an initial LLM invocation.How the concrete model for an LLM call was determined, recorded as audit metadata onAgentInvocationResultand theLLM_CALL_COMPLETEDevent.