Uses of Interface
com.tnsai.events.TnsAIEvent
Packages that use TnsAIEvent
Package
Description
Agent classes and lifecycle management for the TnsAI framework.
Agent orchestration — chat, streaming, tool execution, and knowledge base management.
Streaming and event-based chat operations with token-level granularity and event publishing.
Event-driven communication system for agent lifecycle and execution notifications.
Runtime processing infrastructure for
EventHandler annotations.Observability event schema + thread-local correlation context.
-
Uses of TnsAIEvent in com.tnsai.agents
Method parameters in com.tnsai.agents with type arguments of type TnsAIEventModifier and TypeMethodDescriptionfinal StringAgent.chatWithEvents(String message, Consumer<TnsAIEvent> eventConsumer) Chat with real-time TnsAI event emission (AG-UI integration).final StringAgent.chatWithEvents(String message, Consumer<TnsAIEvent> eventConsumer, ChatRetrievalContext retrievalContext) Emits events with request-local retrieval isolation and lifecycle context. -
Uses of TnsAIEvent in com.tnsai.agents.orchestration
Method parameters in com.tnsai.agents.orchestration with type arguments of type TnsAIEventModifier and TypeMethodDescriptionAgentOrchestrator.chatWithEvents(String message, Consumer<TnsAIEvent> eventConsumer) AgentOrchestrator.chatWithEvents(String message, Consumer<TnsAIEvent> eventConsumer, ChatRetrievalContext retrievalContext) -
Uses of TnsAIEvent in com.tnsai.agents.streaming
Method parameters in com.tnsai.agents.streaming with type arguments of type TnsAIEventModifier and TypeMethodDescriptionAgentStreamingSupport.chatWithEvents(String message, Consumer<TnsAIEvent> eventConsumer) Chat with event callbacks for AG-UI integration.AgentStreamingSupport.chatWithEvents(String message, Consumer<TnsAIEvent> eventConsumer, ChatRetrievalContext retrievalContext) -
Uses of TnsAIEvent in com.tnsai.events
Classes in com.tnsai.events that implement TnsAIEventModifier and TypeClassDescriptionfinal recordEvent representing a snapshot of the agent's hierarchy and state, intended for multi-agent visualization in the frontend.final recordEvent requesting human approval for an action.final recordEvent representing the creation of an artifact by the agent.final recordEvent representing a change in the agent's BDI (Belief-Desire-Intention) state.final recordEvent representing an error during agent execution.final recordEvent indicating that an agent run has completed.final recordEvent indicating that an agent run has started.final recordEmitted whenever acom.tnsai.skills.Skillis activated for an agent (TNS-289).final recordEvent representing a status update during agent execution.final recordEvent representing a streaming text chunk from the LLM.final recordEvent representing an agent's internal reasoning or thinking process.final recordEvent indicating that a tool call has completed.final recordEvent indicating that a tool call has started.final recordEvent representing a request to render a specific UI component in the frontend.Methods in com.tnsai.events that return types with arguments of type TnsAIEventModifier and TypeMethodDescriptionInMemoryEventPublisher.getPublisher(String sessionId) TnsAIEventPublisher.getPublisher(String sessionId) Gets a Flow.Publisher for the specified session.Methods in com.tnsai.events with parameters of type TnsAIEventModifier and TypeMethodDescriptionvoidInMemoryEventPublisher.publish(String sessionId, TnsAIEvent event) voidTnsAIEventPublisher.publish(String sessionId, TnsAIEvent event) Publishes an event to all subscribers of the specified session.Method parameters in com.tnsai.events with type arguments of type TnsAIEventModifier and TypeMethodDescriptionvoidInMemoryEventPublisher.subscribe(String sessionId, Flow.Subscriber<TnsAIEvent> subscriber) InMemoryEventPublisher.subscribe(String sessionId, Consumer<TnsAIEvent> consumer) voidTnsAIEventPublisher.subscribe(String sessionId, Flow.Subscriber<TnsAIEvent> subscriber) Subscribes to events for a specific session using a Flow.Subscriber.TnsAIEventPublisher.subscribe(String sessionId, Consumer<TnsAIEvent> consumer) Subscribes to events for a specific session using a simple consumer. -
Uses of TnsAIEvent in com.tnsai.events.handler
Methods in com.tnsai.events.handler that return types with arguments of type TnsAIEventModifier and TypeMethodDescriptionEventHandlerRegistry.asEventConsumer()Returns a consumer that maps TnsAIEvent instances to event names and dispatches them.Methods in com.tnsai.events.handler with parameters of type TnsAIEventModifier and TypeMethodDescriptionvoidEventHandlerRegistry.dispatch(String eventName, TnsAIEvent event) Dispatches an event to all matching handlers.static StringEventHandlerRegistry.eventNameFor(TnsAIEvent event) Maps a TnsAIEvent to its dot-notation event name. -
Uses of TnsAIEvent in com.tnsai.observability.events
Methods in com.tnsai.observability.events that return TnsAIEventModifier and TypeMethodDescriptionCapturingAgentEventPublisher.Captured.event()Returns the value of theeventrecord component.Methods in com.tnsai.observability.events that return types with arguments of type TnsAIEventMethods in com.tnsai.observability.events with parameters of type TnsAIEventModifier and TypeMethodDescriptionvoidAgentEventPublisher.publish(TnsAIEvent event) Publish a single event.default voidAgentEventPublisher.publish(TnsAIEvent event, EventLevel level, EventContext context) Publish a single event with explicit level / context overrides.static voidAgentEvents.publish(TnsAIEvent event) Publishes the event at INFO level with the current thread's context.static voidAgentEvents.publish(TnsAIEvent event, EventLevel level) Publishes at the given level; current thread's context is captured.static voidAgentEvents.publish(TnsAIEvent event, EventLevel level, EventContext context) Publishes with explicit level + context (bypasses thread-local lookup).voidCapturingAgentEventPublisher.publish(TnsAIEvent event) voidCapturingAgentEventPublisher.publish(TnsAIEvent event, EventLevel level, EventContext context) voidCompositeAgentEventPublisher.publish(TnsAIEvent event) voidCompositeAgentEventPublisher.publish(TnsAIEvent event, EventLevel level, EventContext context) voidSlf4jAgentEventPublisher.publish(TnsAIEvent event) voidSlf4jAgentEventPublisher.publish(TnsAIEvent event, EventLevel level, EventContext context) Constructors in com.tnsai.observability.events with parameters of type TnsAIEventModifierConstructorDescriptionCaptured(TnsAIEvent event, EventLevel level, EventContext context) Creates an instance of aCapturedrecord class. -
Uses of TnsAIEvent in com.tnsai.skills
Method parameters in com.tnsai.skills with type arguments of type TnsAIEventModifier and TypeMethodDescriptionSkillManager.invoke(String name, List<String> arguments, Map<String, String> environment, SkillActivationEvent.Source source, Consumer<TnsAIEvent> eventConsumer) Invoke a skill by name with the supplied arguments.