Package com.tnsai.agents.streaming
Interface AgentStreamingSupport.StreamingContext
- All Known Implementing Classes:
AgentOrchestrator
- Enclosing class:
AgentStreamingSupport
public static interface AgentStreamingSupport.StreamingContext
Context interface for accessing Agent internals needed for streaming.
-
Method Summary
Modifier and TypeMethodDescriptionchatInternal(String message, boolean useHistory) executeAction(String actionName, Map<String, Object> parameters) default ObjectexecuteAction(String actionName, Map<String, Object> parameters, ChatRetrievalContext retrievalContext) default AgentToolExecutor.ToolCallResultExecutes a tool call with permission check and listener notification.default AgentToolExecutor.ToolCallResultexecuteToolCallWithHooks(ChatResponse.ToolCall toolCall, ChatRetrievalContext retrievalContext) default Optional<KnowledgeScope>
-
Method Details
-
getAgentId
String getAgentId() -
getAgentName
String getAgentName() -
getAgentLLM
LLMClient getAgentLLM() -
getAgentMemoryStore
MemoryStore getAgentMemoryStore() -
getContextTokenLimit
Integer getContextTokenLimit() -
getSystemPrompt
String getSystemPrompt() -
getToolsForLLM
-
getEventPublisher
TnsAIEventPublisher getEventPublisher() -
getAgentKnowledgeScope
-
executeAction
-
executeAction
-
chatInternal
-
executeToolCallWithHooks
Executes a tool call with permission check and listener notification. -
executeToolCallWithHooks
default AgentToolExecutor.ToolCallResult executeToolCallWithHooks(ChatResponse.ToolCall toolCall, ChatRetrievalContext retrievalContext)
-