Class LlmActor
- All Implemented Interfaces:
com.scivicslab.pojoactor.core.CallableByActionName,AutoCloseable
Actor that calls an LLM service via MCP Streamable HTTP transport.
Default target: quarkus-coder-agent-claude at localhost:8090.
Can be dynamically loaded via loader.loadMaven in workflow YAML.
-
Field Summary
Fields inherited from class com.scivicslab.pojoactor.core.ActorRef
actorName, actorSystem, object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.scivicslab.pojoactor.core.ActionResultList available tools on the MCP server.com.scivicslab.pojoactor.core.ActionResultSend a prompt to the LLM via MCP tools/call.voidsetOutputListener(Consumer<String> listener) com.scivicslab.pojoactor.core.ActionResultSet the MCP server base URL.com.scivicslab.pojoactor.core.ActionResultGet the LLM service status via MCP tools/call.Methods inherited from class com.scivicslab.turingworkflow.workflow.IIActorRef
callByActionName, hasAnnotatedAction, invokeAnnotatedAction, parseFirstArgumentMethods inherited from class com.scivicslab.pojoactor.core.ActorRef
ask, ask, askNow, clearJsonState, clearPendingMessages, close, createChild, expandVariables, getJsonBoolean, getJsonInt, getJsonString, getJsonString, getLastResult, getName, getNamesOfChildren, getParentName, hasJson, hasJsonState, initLogger, isAlive, json, putJson, setLastResult, setParentName, system, tell, tell, tellNow, toStringOfJson, toStringOfYaml
-
Constructor Details
-
LlmActor
-
-
Method Details
-
setOutputListener
-
setUrl
Set the MCP server base URL. Arguments: URL (e.g., "http://localhost:8090") -
prompt
Send a prompt to the LLM via MCP tools/call. Arguments: the prompt text -
status
Get the LLM service status via MCP tools/call. -
listTools
List available tools on the MCP server.
-