java.lang.Object
com.scivicslab.pojoactor.core.ActorRef<LlmClient>
com.scivicslab.turingworkflow.workflow.IIActorRef<LlmClient>
com.scivicslab.turingworkflow.plugins.llm.LlmActor
All Implemented Interfaces:
com.scivicslab.pojoactor.action.CallableByActionName, AutoCloseable

public class LlmActor extends com.scivicslab.turingworkflow.workflow.IIActorRef<LlmClient>
LlmClient をアクターとして動かし、その操作をワークフローYAMLへ公開する。

状態は持たない。持つのは包んだ LlmClient のほうであり、これが ActorRef の 前提である——アクターとは、素のオブジェクトと、それを動かす参照の対である。状態をこちら側に置き null を包むと、isAlive() が偽を返し、tell/ask が黙って失敗する (ActorSuffixAndOwnedActorRef_260722_oo01 「実例(2026-08-30)」)。

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
    Whether the model should be asked to think before answering.
    static final record 
    The endpoint to send to and the model to ask for.
    static final record 
    The text to send.
    static final record 
    The endpoint to send to.
  • Field Summary

    Fields inherited from class com.scivicslab.pojoactor.core.ActorRef

    actorName, actorSystem, object
  • Constructor Summary

    Constructors
    Constructor
    Description
    LlmActor(String name, com.scivicslab.turingworkflow.workflow.IIActorSystem system)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.scivicslab.pojoactor.action.ActionResult
     
    com.scivicslab.pojoactor.action.ActionResult
     
    com.scivicslab.pojoactor.action.ActionResult
     
    com.scivicslab.pojoactor.action.ActionResult
     
    com.scivicslab.pojoactor.action.ActionResult
     
    com.scivicslab.pojoactor.action.ActionResult
     

    Methods inherited from class com.scivicslab.turingworkflow.workflow.IIActorRef

    addChildActor, callByActionName, getLastResult, hasAnnotatedAction, invokeAnnotatedAction, parseFirstArgument, setLastResult, sharedSchemaRegistry, wrapped

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LlmActor

      public LlmActor(String name, com.scivicslab.turingworkflow.workflow.IIActorSystem system)
      Parameters:
      name - このアクターの登録名
      system - 所属するアクターシステム
  • Method Details

    • setDirectUrl

      public com.scivicslab.pojoactor.action.ActionResult setDirectUrl(LlmActor.UrlArgs args)
    • setOpenAiUrl

      public com.scivicslab.pojoactor.action.ActionResult setOpenAiUrl(LlmActor.OpenAiUrlArgs args)
      Parameters:
      args - ワークフローからの引数
      Returns:
      包んだオブジェクトが返した結果
    • setSystemPrompt

      public com.scivicslab.pojoactor.action.ActionResult setSystemPrompt(LlmActor.PromptArgs args)
      Parameters:
      args - ワークフローからの引数
      Returns:
      包んだオブジェクトが返した結果
    • setEnableThinking

      public com.scivicslab.pojoactor.action.ActionResult setEnableThinking(LlmActor.EnableThinkingArgs args)
      Parameters:
      args - ワークフローからの引数
      Returns:
      包んだオブジェクトが返した結果
    • callOpenAi

      public com.scivicslab.pojoactor.action.ActionResult callOpenAi(LlmActor.PromptArgs args)
      Parameters:
      args - ワークフローからの引数
      Returns:
      包んだオブジェクトが返した結果
    • submitDirect

      public com.scivicslab.pojoactor.action.ActionResult submitDirect(LlmActor.PromptArgs args)
      Parameters:
      promptText - ワークフローからの引数
      Returns:
      包んだオブジェクトが返した結果