Class LlmActor
- All Implemented Interfaces:
com.scivicslab.pojoactor.action.CallableByActionName,AutoCloseable
LlmClient をアクターとして動かし、その操作をワークフローYAMLへ公開する。
状態は持たない。持つのは包んだ LlmClient のほうであり、これが ActorRef の
前提である——アクターとは、素のオブジェクトと、それを動かす参照の対である。状態をこちら側に置き
null を包むと、isAlive() が偽を返し、tell/ask が黙って失敗する
(ActorSuffixAndOwnedActorRef_260722_oo01 「実例(2026-08-30)」)。
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordWhether the model should be asked to think before answering.static final recordThe endpoint to send to and the model to ask for.static final recordThe text to send.static final recordThe endpoint to send to. -
Field Summary
Fields inherited from class com.scivicslab.pojoactor.core.ActorRef
actorName, actorSystem, object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.scivicslab.pojoactor.action.ActionResultcom.scivicslab.pojoactor.action.ActionResultsetDirectUrl(LlmActor.UrlArgs args) com.scivicslab.pojoactor.action.ActionResultcom.scivicslab.pojoactor.action.ActionResultcom.scivicslab.pojoactor.action.ActionResultcom.scivicslab.pojoactor.action.ActionResultMethods inherited from class com.scivicslab.turingworkflow.workflow.IIActorRef
addChildActor, callByActionName, getLastResult, hasAnnotatedAction, invokeAnnotatedAction, parseFirstArgument, setLastResult, sharedSchemaRegistry, wrappedMethods inherited from class com.scivicslab.pojoactor.core.ActorRef
ask, ask, askNow, clearJsonState, clearPendingMessages, close, createChild, getAttribute, getAttribute, getJsonBoolean, getJsonInt, getJsonString, getJsonString, getLastResultValue, getName, getNamesOfChildren, getParentName, hasAttribute, hasJson, hasJsonState, initLogger, isAlive, json, putAttribute, putJson, removeAttribute, setLastResultValue, setParentName, system, tell, tell, tellNow, toStringOfJson, toStringOfYaml
-
Constructor Details
-
LlmActor
- Parameters:
name- このアクターの登録名system- 所属するアクターシステム
-
-
Method Details
-
setDirectUrl
-
setOpenAiUrl
- Parameters:
args- ワークフローからの引数- Returns:
- 包んだオブジェクトが返した結果
-
setSystemPrompt
- Parameters:
args- ワークフローからの引数- Returns:
- 包んだオブジェクトが返した結果
-
setEnableThinking
public com.scivicslab.pojoactor.action.ActionResult setEnableThinking(LlmActor.EnableThinkingArgs args) - Parameters:
args- ワークフローからの引数- Returns:
- 包んだオブジェクトが返した結果
-
callOpenAi
- Parameters:
args- ワークフローからの引数- Returns:
- 包んだオブジェクトが返した結果
-
submitDirect
- Parameters:
promptText- ワークフローからの引数- Returns:
- 包んだオブジェクトが返した結果
-