Interface AiServiceStartedEvent
- All Superinterfaces:
AiServiceEvent
- All Known Implementing Classes:
DefaultAiServiceStartedEvent
Called when an LLM invocation has started.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Builder forDefaultAiServiceStartedEvent
instances.Nested classes/interfaces inherited from interface AiServiceEvent
AiServiceEvent.Builder<T>
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a new builder instance for constructing aAiServiceStartedEvent
.default Class
<AiServiceStartedEvent> Retrieves the class type of the event, representing the specific category of the AI Service invocation event.Retrieves an optional system message associated with the invocation.Creates a new builder instance initialized with the properties of thisAiServiceEvent
.Retrieves the user message associated with the invocation.Methods inherited from interface AiServiceEvent
invocationContext
-
Method Details
-
systemMessage
Optional<SystemMessage> systemMessage()Retrieves an optional system message associated with the invocation. A system message typically provides instructions regarding the AI's behavior, actions, or response style. -
userMessage
UserMessage userMessage()Retrieves the user message associated with the invocation. The user message represents the content or input provided by the user during the AI Service invocation. -
builder
Creates a new builder instance for constructing aAiServiceStartedEvent
. -
eventClass
Description copied from interface:AiServiceEvent
Retrieves the class type of the event, representing the specific category of the AI Service invocation event.- Specified by:
eventClass
in interfaceAiServiceEvent
-
toBuilder
Description copied from interface:AiServiceEvent
Creates a new builder instance initialized with the properties of thisAiServiceEvent
. This allows modification of the existing properties and reconstruction of the event.- Specified by:
toBuilder
in interfaceAiServiceEvent
-