Uses of Class
com.tnsai.thread.AgentThread
Packages that use AgentThread
-
Uses of AgentThread in com.tnsai.thread
Methods in com.tnsai.thread that return AgentThreadModifier and TypeMethodDescriptionstatic AgentThreadAgentThread.create(ThreadSpec config) Create a new root thread with generated ID.static AgentThreadAgentThread.create(ThreadSpec config, com.tnsai.state.Checkpointer checkpointer) Create a new root thread with a checkpointer.AgentThread.createChild(ThreadSpec childSpec) Create a child thread.ThreadManager.createThread(ThreadSpec config) Create a new thread with the given configuration.ThreadManager.createThread(String threadId, ThreadSpec config) Create a thread with a specific ID.ThreadManager.getThreadOrThrow(String threadId) Get a thread by ID, throwing if not found.ThreadManager.recoverThread(String threadId) Recover a thread from its checkpoint.ThreadManager.recoverThread(String threadId, ThreadSpec config) Recover a thread with a specific configuration.static AgentThreadAgentThread.withId(String threadId, ThreadSpec config, com.tnsai.state.Checkpointer checkpointer) Create a thread with a specific ID (for recovery).Methods in com.tnsai.thread that return types with arguments of type AgentThreadModifier and TypeMethodDescriptionAgentThread.getActiveChildren()Get active (non-terminal) children.ThreadManager.getActiveThreads()Get active (non-terminal) threads.ThreadManager.getAllThreads()Get all threads.AgentThread.getChildren()Get all child threads.AgentThread.getParent()Get a thread by ID.ThreadManager.getThreadsByState(ThreadState state) Get threads by state.Methods in com.tnsai.thread with parameters of type AgentThreadModifier and TypeMethodDescriptionstatic ThreadEventThreadEvent.cancelled(AgentThread thread) static ThreadEventThreadEvent.checkpointCreated(AgentThread thread, String checkpointId) static ThreadEventThreadEvent.childCreated(AgentThread parent, AgentThread child) static ThreadEventThreadEvent.completed(AgentThread thread) static ThreadEventThreadEvent.failed(AgentThread thread, Throwable error) static ThreadEventThreadEvent.messageProcessed(AgentThread thread, String input, String output) static ThreadEventThreadEvent.paused(AgentThread thread) static ThreadEventThreadEvent.quotaExceeded(AgentThread thread, String violation) static ThreadEventThreadEvent.resumed(AgentThread thread) static ThreadEventThreadEvent.started(AgentThread thread)