EventMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)Metadata relating to a LLM response event.
Attributes |
|
|---|---|
| Name | Description |
grounding_metadata |
google.cloud.aiplatform_v1.types.GroundingMetadata
Optional. Metadata returned to client when grounding is enabled. |
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. |
turn_complete |
bool
Optional. Indicates whether the response from the model is complete. Only used for streaming mode. |
interrupted |
bool
Optional. Flag indicating that LLM was interrupted when generating the content. Usually it's due to user interruption during a bidi streaming. |
long_running_tool_ids |
MutableSequence[str]
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. |
branch |
str
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. |
custom_metadata |
google.protobuf.struct_pb2.Struct
The custom metadata of the LlmResponse. |
input_transcription |
google.cloud.aiplatform_v1.types.Transcription
Optional. Audio transcription of user input. |
output_transcription |
google.cloud.aiplatform_v1.types.Transcription
Optional. Audio transcription of model output. |
Methods
EventMetadata
EventMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)Metadata relating to a LLM response event.