EventMetadata class final
Metadata relating to a LLM response event.
- Inheritance
-
- Object
- ProtoMessage
- EventMetadata
Constructors
-
EventMetadata({GroundingMetadata? groundingMetadata, bool partial = false, bool turnComplete = false, bool interrupted = false, List<
String> longRunningToolIds = const [], String branch = '', Struct? customMetadata}) - EventMetadata.fromJson(Object? j)
-
factory
Properties
- branch → String
-
Optional. The branch of the event.
The format is like agent_1.agent_2.agent_3, where agent_1 is the parent of
agent_2, and agent_2 is the parent of agent_3.
Branch is used when multiple child agents shouldn't see their siblings'
conversation history.
final
- customMetadata → Struct?
-
The custom metadata of the LlmResponse.
final
- groundingMetadata → GroundingMetadata?
-
Optional. Metadata returned to client when grounding is enabled.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- interrupted → bool
-
Optional. Flag indicating that LLM was interrupted when generating the
content. Usually it's due to user interruption during a bidi streaming.
final
-
longRunningToolIds
→ List<
String> -
Optional. Set of ids of the long running function calls.
Agent client will know from this field about which function call is long
running. Only valid for function call event.
final
- partial → bool
-
Optional. Indicates whether the text content is part of a unfinished text
stream. Only used for streaming mode and when the content is plain text.
final
- qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- turnComplete → bool
-
Optional. Indicates whether the response from the model is complete.
Only used for streaming mode.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String