Agent Platform API . projects . locations . reasoningEngines . a2aTasks . events

Instance Methods

close()

Close httplib2 connections.

list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)

Lists TaskEvents for an A2aTask.

list_next(previous_request, previous_response)

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists TaskEvents for an A2aTask.

Args:
  parent: string, Required. The resource name of the A2aTask to list the TaskEvents under. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/a2aTasks/{a2a_task}` or `projects/{project}/locations/{location}/taskStores/{task_store}/a2aTasks/{a2a_task}` (required)
  filter: string, Optional. The standard list filter. Supported fields: * `create_time` range (i.e. `create_time>="2025-01-31T11:30:00-04:00"` where the timestamp is in RFC 3339 format) More detail in [AIP-160](https://google.aip.dev/160).
  orderBy: string, Optional. A comma-separated list of fields to order the results by. If this field is omitted, the results will be ordered by `event_sequence_number` in descending order. For each field, the default sort order is ascending. To specify descending order for a field, append a ` desc` suffix. For example: `create_time desc`. Supported fields: * `create_time` * `event_sequence_number`
  pageSize: integer, Optional. The maximum number of events to return. The service may return fewer than this value. If unspecified, at most 100 events will be returned. The maximum value is 100; values above 100 will hit exception.
  pageToken: string, Optional. The next_page_token value returned from a previous list ListA2aTaskEvents call.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for ListA2aTaskEvents.
  "events": [ # List of A2aTaskEvents in the requested page. Populated only by the TaskStoreService.
    { # An event that records a single change applied to a task's state.
      "createTime": "A String", # Output only. The time at which the event was created.
      "eventData": { # The data describing the change carried by an A2aTaskEvent. Exactly one of the following changes is set per event. # Required. The data describing the change carried by this event.
        "artifactChange": { # An event payload describing a change to one of the task's artifacts. # Optional. A change to one of the task's artifacts.
          "append": True or False, # Optional. Whether the artifact parts should be appended to an existing artifact rather than replacing it.
          "artifact": { # Represents a single artifact produced by a task. # Required. The artifact that was added or updated.
            "artifactId": "A String", # Required. The unique identifier of the artifact within the task.
            "description": "A String", # Optional. A human-readable description of the artifact.
            "displayName": "A String", # Optional. The human-readable name of the artifact.
            "extensions": [ # Optional. A2A protocol extensions associated with the artifact.
              "A String",
            ],
            "metadata": { # Optional. Additional context or parameters related to the artifact. Extensions can be used to strongly type metadata values for specific use cases.
              "a_key": "", # Properties of the object.
            },
            "parts": [ # Required. The content parts that make up the artifact.
              { # A single part of a message or artifact. A part carries exactly one kind of content.
                "data": { # Optional. Structured data content.
                  "a_key": "", # Properties of the object.
                },
                "filename": "A String", # Optional. The name of the file, when the part represents a file.
                "mediaType": "A String", # Optional. The IANA media type of the content, e.g. "text/plain" or "image/png".
                "metadata": { # Optional. Additional context or parameters related to the part. Extensions can be used to strongly type metadata values for specific use cases.
                  "a_key": "", # Properties of the object.
                },
                "raw": "A String", # Optional. Raw binary content.
                "text": "A String", # Optional. Textual content.
                "url": "A String", # Optional. A URL pointing to the content.
              },
            ],
          },
          "lastChunk": True or False, # Optional. Whether this is the last chunk of a streamed artifact.
        },
        "historyAppend": { # An event payload that appends a new message to the task history. # Optional. A new message appended to the task history.
          "message": { # Represents a single message in a conversation, compliant with the A2A specification. # Required. The message to append to the task history.
            "extensions": [ # Optional. A2A protocol extensions associated with the message.
              "A String",
            ],
            "messageId": "A String", # Required. The unique identifier of the message.
            "metadata": { # Optional. Additional context or parameters related to the message. Extensions can be used to strongly type metadata values for specific use cases.
              "a_key": "", # Properties of the object.
            },
            "parts": [ # Required. The content parts that make up the message.
              { # A single part of a message or artifact. A part carries exactly one kind of content.
                "data": { # Optional. Structured data content.
                  "a_key": "", # Properties of the object.
                },
                "filename": "A String", # Optional. The name of the file, when the part represents a file.
                "mediaType": "A String", # Optional. The IANA media type of the content, e.g. "text/plain" or "image/png".
                "metadata": { # Optional. Additional context or parameters related to the part. Extensions can be used to strongly type metadata values for specific use cases.
                  "a_key": "", # Properties of the object.
                },
                "raw": "A String", # Optional. Raw binary content.
                "text": "A String", # Optional. Textual content.
                "url": "A String", # Optional. A URL pointing to the content.
              },
            ],
            "referenceTaskIds": [ # Optional. The IDs of other tasks referenced by this message.
              "A String",
            ],
            "role": "A String", # Required. The role of the sender of the message.
          },
        },
        "metadataChange": { # An event payload describing a change to the task-level metadata. # Optional. A change to the task-level metadata.
          "metadata": { # Required. The complete task metadata after the change.
            "a_key": "", # Properties of the object.
          },
          "updateMask": "A String", # Optional. A field mask indicating which metadata paths changed. If unset, all fields are updated.
        },
        "statusUpdate": { # An event payload that updates the task's state and optional status message. # Optional. An update to the task's state and status message.
          "message": { # Represents a single message in a conversation, compliant with the A2A specification. # Optional. The status message associated with the state change.
            "extensions": [ # Optional. A2A protocol extensions associated with the message.
              "A String",
            ],
            "messageId": "A String", # Required. The unique identifier of the message.
            "metadata": { # Optional. Additional context or parameters related to the message. Extensions can be used to strongly type metadata values for specific use cases.
              "a_key": "", # Properties of the object.
            },
            "parts": [ # Required. The content parts that make up the message.
              { # A single part of a message or artifact. A part carries exactly one kind of content.
                "data": { # Optional. Structured data content.
                  "a_key": "", # Properties of the object.
                },
                "filename": "A String", # Optional. The name of the file, when the part represents a file.
                "mediaType": "A String", # Optional. The IANA media type of the content, e.g. "text/plain" or "image/png".
                "metadata": { # Optional. Additional context or parameters related to the part. Extensions can be used to strongly type metadata values for specific use cases.
                  "a_key": "", # Properties of the object.
                },
                "raw": "A String", # Optional. Raw binary content.
                "text": "A String", # Optional. Textual content.
                "url": "A String", # Optional. A URL pointing to the content.
              },
            ],
            "referenceTaskIds": [ # Optional. The IDs of other tasks referenced by this message.
              "A String",
            ],
            "role": "A String", # Required. The role of the sender of the message.
          },
          "state": "A String", # Required. The new state of the task.
          "timestamp": "A String", # Optional. The time at which the status change occurred.
        },
      },
      "generation": "A String", # Output only. The generation number of the task after this event is applied.
      "metadata": { # Optional. Additional context or parameters related to the event. Extensions can be used to strongly type metadata values for specific use cases.
        "a_key": "", # Properties of the object.
      },
    },
  ],
  "nextPageToken": "A String", # A token to retrieve the next page of results.
  "taskEvents": [ # List of TaskEvents in the requested page. Populated only by the AgentEngineTaskStoreService.
    { # An event that occurred for a task. Note that TaskEvent is just a record of task's change. Hence, it's not a Cloud resource.
      "createTime": "A String", # Output only. The create time of the event.
      "eventData": { # Data for a TaskEvent. # Required. The delta associated with the event.
        "metadataChange": { # An event representing a change to the task's top-level metadata. example: metadata_change: { new_metadata: { "name": "My task", } update_mask: { paths: "name" } } # Optional. A change to the task's metadata.
          "newMetadata": { # Required. The complete state of the metadata object *after* the change.
            "a_key": "", # Properties of the object.
          },
          "updateMask": "A String", # Optional. A field mask indicating which paths in the Struct were changed. If not set, all fields will be updated. go/aip-internal/cloud-standard/2412
        },
        "outputChange": { # An event representing a change to the task's outputs. # Optional. A change to the task's final outputs.
          "taskArtifactChange": { # Describes changes to the artifact list. # Required. A granular change to the list of artifacts.
            "addedArtifacts": [ # Optional. A list of brand-new artifacts created in this event.
              { # Represents a single artifact produced by a task. sample: artifacts: { artifact_id: "image-12345" name: "Generated Sunset Image" description: "A beautiful sunset over the mountains, generated by the user's request." parts: { inline_data: { mime_type: "image/png" data: "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAA=" } } }
                "artifactId": "A String", # Required. The unique identifier of the artifact within the task. This id is provided by the creator of the artifact.
                "description": "A String", # Optional. A human readable description of the artifact.
                "displayName": "A String", # Optional. The human-readable name of the artifact provided by the creator.
                "metadata": { # Optional. Additional metadata for the artifact. For A2A, the URIs of the extensions that were used to produce this artifact will be stored here.
                  "a_key": "", # Properties of the object.
                },
                "parts": [ # Required. The content of the artifact.
                  { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` must contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
                    "audioMetadata": { # Metadata describes the input audio content. Set this in `Part.audio_metadata` or `FunctionResponsePart.audio_metadata` when `inline_data` or `file_data` contains audio to configure static audio preprocessing. # Optional. Audio metadata. The metadata should only be specified while the audio data is presented in inline_data or file_data.
                      "endOffset": "A String", # Optional. The end offset of the audio, relative to the start of the audio stream.
                      "startOffset": "A String", # Optional. The start offset of the audio, relative to the start of the audio stream.
                    },
                    "audioTranscription": { # The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate `Part` with its own `AudioTranscription` carrying the `speaker_label`. # Optional. Audio (input or output) transcription. This is only set when this `Part` contains audio data.
                      "speakerLabel": "A String", # Optional. A label identifying the speaker of this audio segment (e.g. `spk_1`, `spk_2`). Present when `diarization` is set.
                      "text": "A String", # Required. The transcription text of this audio segment.
                      "words": [ # Optional. Detailed word-level transcriptions and timing details. Present when `word_timestamp` is set.
                        { # Information about a single recognized word.
                          "endOffset": "A String", # Optional. End offset in time of the word relative to the start of the audio.
                          "startOffset": "A String", # Optional. Start offset in time of the word relative to the start of the audio.
                          "word": "A String", # Required. Transcript of the word.
                        },
                      ],
                    },
                    "codeExecutionResult": { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
                      "id": "A String", # Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id.
                      "outcome": "A String", # Required. Outcome of the code execution.
                      "output": "A String", # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
                    },
                    "documentMetadata": { # Metadata describes the input document content. Set this in `Part.document_metadata` or `FunctionResponsePart.document_metadata` when `inline_data` or `file_data` contains a document to configure static document preprocessing. # Optional. Document metadata. The metadata should only be specified while the document data is presented in inline_data or file_data.
                      "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [PAGE_IMAGE] when DocumentMediaMetadata is set. When DocumentMediaMetadata is not set, default document processing is used (for example, page images for PDFs).
                        "A String",
                      ],
                      "endPage": 42, # Optional. 1-indexed inclusive end page.
                      "startPage": 42, # Optional. 1-indexed inclusive start page.
                    },
                    "executableCode": { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
                      "code": "A String", # Required. The code to be executed.
                      "id": "A String", # Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`.
                      "language": "A String", # Required. Programming language of the `code`.
                    },
                    "fileData": { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
                      "displayName": "A String", # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
                      "fileUri": "A String", # Required. The URI of the file in Google Cloud Storage.
                      "mimeType": "A String", # Required. The IANA standard MIME type of the source data.
                    },
                    "functionCall": { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
                      "args": { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
                        "a_key": "", # Properties of the object.
                      },
                      "id": "A String", # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
                      "name": "A String", # Optional. The name of the function to call. Matches FunctionDeclaration.name.
                      "partialArgs": [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
                        { # Partial argument value of the function call.
                          "boolValue": True or False, # Optional. Represents a boolean value.
                          "jsonPath": "A String", # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data".
                          "nullValue": "A String", # Optional. Represents a null value.
                          "numberValue": 3.14, # Optional. Represents a double value.
                          "stringValue": "A String", # Optional. Represents a string value.
                          "willContinue": True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
                        },
                      ],
                      "willContinue": True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
                    },
                    "functionResponse": { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
                      "id": "A String", # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
                      "name": "A String", # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
                      "parts": [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
                        { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
                          "audioMetadata": { # Metadata describes the input audio content. Set this in `Part.audio_metadata` or `FunctionResponsePart.audio_metadata` when `inline_data` or `file_data` contains audio to configure static audio preprocessing. # Optional. Audio metadata. The metadata should only be specified while the audio data is presented in inline_data or file_data.
                            "endOffset": "A String", # Optional. The end offset of the audio, relative to the start of the audio stream.
                            "startOffset": "A String", # Optional. The start offset of the audio, relative to the start of the audio stream.
                          },
                          "documentMetadata": { # Metadata describes the input document content. Set this in `Part.document_metadata` or `FunctionResponsePart.document_metadata` when `inline_data` or `file_data` contains a document to configure static document preprocessing. # Optional. Document metadata. The metadata should only be specified while the document data is presented in inline_data or file_data.
                            "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [PAGE_IMAGE] when DocumentMediaMetadata is set. When DocumentMediaMetadata is not set, default document processing is used (for example, page images for PDFs).
                              "A String",
                            ],
                            "endPage": 42, # Optional. 1-indexed inclusive end page.
                            "startPage": 42, # Optional. 1-indexed inclusive start page.
                          },
                          "fileData": { # URI based data for function response. # URI based data.
                            "displayName": "A String", # Optional. Display name of the file. Used to provide a label or filename to distinguish file data, and to reference the file from `FunctionResponse.response` (for example, via `{"$ref": ""}`).
                            "fileUri": "A String", # Required. URI.
                            "mimeType": "A String", # Required. The IANA standard MIME type of the source data.
                          },
                          "inlineData": { # Raw media bytes for function response. Text should not be sent as raw bytes, use the 'text' field. # Inline media bytes.
                            "data": "A String", # Required. Raw bytes.
                            "displayName": "A String", # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs, and to reference the blob from `FunctionResponse.response` (for example, via `{"$ref": ""}`).
                            "mimeType": "A String", # Required. The IANA standard MIME type of the source data.
                          },
                          "mediaProcessing": "A String", # Optional. Processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.
                          "mediaResolution": { # Media resolution for the input media of a `FunctionResponsePart`. # Optional. Media resolution for the input media.
                            "level": "A String", # The tokenization quality used for given media.
                          },
                          "spreadsheetMetadata": { # Metadata describes the input spreadsheet content. Set this in `Part.spreadsheet_metadata` or `FunctionResponsePart.spreadsheet_metadata` when `inline_data` or `file_data` contains a spreadsheet to configure static spreadsheet preprocessing. # Optional. Spreadsheet metadata. The metadata should only be specified while the spreadsheet data is presented in inline_data or file_data.
                            "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [DATA, FORMULAS] when SpreadsheetMetadata is set.
                              "A String",
                            ],
                            "sheetIndex": 42, # Optional. The 1-indexed index of the sheet to extract, in workbook order. If not set, all sheets are extracted.
                            "visibleCells": "A String", # Optional. The range of cells to extract, in A1 notation (e.g. "A1:D10"). If not set, the full occupied area of the sheet is used.
                          },
                          "videoMetadata": { # Metadata describes the input video content of a `FunctionResponsePart`. Set this in `FunctionResponsePart.video_metadata` when `inline_data` or `file_data` contains video to configure static video preprocessing. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
                            "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [FRAMES, AUDIO].
                              "A String",
                            ],
                            "endOffset": "A String", # Optional. The end offset of the video.
                            "fps": 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
                            "startOffset": "A String", # Optional. The start offset of the video.
                          },
                        },
                      ],
                      "response": { # Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.
                        "a_key": "", # Properties of the object.
                      },
                      "scheduling": "A String", # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
                    },
                    "inlineData": { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
                      "data": "A String", # Required. The raw bytes of the data.
                      "displayName": "A String", # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
                      "mimeType": "A String", # Required. The IANA standard MIME type of the source data.
                    },
                    "mediaProcessing": "A String", # Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.
                    "mediaResolution": { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
                      "level": "A String", # The tokenization quality used for given media.
                    },
                    "speechMetadata": { # Structured Metadata Sub-Message for Part # Optional. Turn-level metadata for speech generation (e.g. Daikon speaker/style). May be set alongside `text` to attach speaker and style information to a text part.
                      "speaker": "A String", # Optional. Identifies which speaker is speaking this turn.
                      "style": "A String", # Optional. Natural language description of the vocal style (e.g., "cheerful").
                    },
                    "spreadsheetMetadata": { # Metadata describes the input spreadsheet content. Set this in `Part.spreadsheet_metadata` or `FunctionResponsePart.spreadsheet_metadata` when `inline_data` or `file_data` contains a spreadsheet to configure static spreadsheet preprocessing. # Optional. Spreadsheet metadata. The metadata should only be specified while the spreadsheet data is presented in inline_data or file_data.
                      "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [DATA, FORMULAS] when SpreadsheetMetadata is set.
                        "A String",
                      ],
                      "sheetIndex": 42, # Optional. The 1-indexed index of the sheet to extract, in workbook order. If not set, all sheets are extracted.
                      "visibleCells": "A String", # Optional. The range of cells to extract, in A1 notation (e.g. "A1:D10"). If not set, the full occupied area of the sheet is used.
                    },
                    "text": "A String", # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
                    "thought": True or False, # Optional. Indicates whether the `part` represents the model's thought process or reasoning.
                    "thoughtSignature": "A String", # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
                    "toolCall": { # A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`. # Optional. Server-side tool call. This field is populated when the model predicts a tool invocation that should be executed on the server. The client is expected to echo this message back to the API.
                      "args": { # Optional. The tool call arguments. Example: {"arg1" : "value1", "arg2" : "value2" , ...}
                        "a_key": "", # Properties of the object.
                      },
                      "id": "A String", # Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`.
                      "toolType": "A String", # Optional. The type of tool that was called.
                    },
                    "toolResponse": { # The output from a server-side `ToolCall` execution. This message contains the results of a tool invocation that was initiated by a `ToolCall` from the model. The client should pass this `ToolResponse` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolCall`. # Optional. The output from a server-side `ToolCall` execution. This field is populated by the client with the results of executing the corresponding `ToolCall`.
                      "id": "A String", # Optional. The identifier of the tool call this response is for.
                      "response": { # Optional. The tool response.
                        "a_key": "", # Properties of the object.
                      },
                      "toolType": "A String", # Optional. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`.
                    },
                    "videoMetadata": { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
                      "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [FRAMES, AUDIO].
                        "A String",
                      ],
                      "endOffset": "A String", # Optional. The end offset of the video.
                      "fps": 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
                      "startOffset": "A String", # Optional. The start offset of the video.
                    },
                  },
                ],
              },
            ],
            "deletedArtifactIds": [ # Optional. A list of artifact IDs that were removed in this event.
              "A String",
            ],
            "updatedArtifacts": [ # Optional. A list of existing artifacts that were modified in this event.
              { # Represents a single artifact produced by a task. sample: artifacts: { artifact_id: "image-12345" name: "Generated Sunset Image" description: "A beautiful sunset over the mountains, generated by the user's request." parts: { inline_data: { mime_type: "image/png" data: "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAA=" } } }
                "artifactId": "A String", # Required. The unique identifier of the artifact within the task. This id is provided by the creator of the artifact.
                "description": "A String", # Optional. A human readable description of the artifact.
                "displayName": "A String", # Optional. The human-readable name of the artifact provided by the creator.
                "metadata": { # Optional. Additional metadata for the artifact. For A2A, the URIs of the extensions that were used to produce this artifact will be stored here.
                  "a_key": "", # Properties of the object.
                },
                "parts": [ # Required. The content of the artifact.
                  { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` must contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
                    "audioMetadata": { # Metadata describes the input audio content. Set this in `Part.audio_metadata` or `FunctionResponsePart.audio_metadata` when `inline_data` or `file_data` contains audio to configure static audio preprocessing. # Optional. Audio metadata. The metadata should only be specified while the audio data is presented in inline_data or file_data.
                      "endOffset": "A String", # Optional. The end offset of the audio, relative to the start of the audio stream.
                      "startOffset": "A String", # Optional. The start offset of the audio, relative to the start of the audio stream.
                    },
                    "audioTranscription": { # The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate `Part` with its own `AudioTranscription` carrying the `speaker_label`. # Optional. Audio (input or output) transcription. This is only set when this `Part` contains audio data.
                      "speakerLabel": "A String", # Optional. A label identifying the speaker of this audio segment (e.g. `spk_1`, `spk_2`). Present when `diarization` is set.
                      "text": "A String", # Required. The transcription text of this audio segment.
                      "words": [ # Optional. Detailed word-level transcriptions and timing details. Present when `word_timestamp` is set.
                        { # Information about a single recognized word.
                          "endOffset": "A String", # Optional. End offset in time of the word relative to the start of the audio.
                          "startOffset": "A String", # Optional. Start offset in time of the word relative to the start of the audio.
                          "word": "A String", # Required. Transcript of the word.
                        },
                      ],
                    },
                    "codeExecutionResult": { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
                      "id": "A String", # Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id.
                      "outcome": "A String", # Required. Outcome of the code execution.
                      "output": "A String", # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
                    },
                    "documentMetadata": { # Metadata describes the input document content. Set this in `Part.document_metadata` or `FunctionResponsePart.document_metadata` when `inline_data` or `file_data` contains a document to configure static document preprocessing. # Optional. Document metadata. The metadata should only be specified while the document data is presented in inline_data or file_data.
                      "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [PAGE_IMAGE] when DocumentMediaMetadata is set. When DocumentMediaMetadata is not set, default document processing is used (for example, page images for PDFs).
                        "A String",
                      ],
                      "endPage": 42, # Optional. 1-indexed inclusive end page.
                      "startPage": 42, # Optional. 1-indexed inclusive start page.
                    },
                    "executableCode": { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
                      "code": "A String", # Required. The code to be executed.
                      "id": "A String", # Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`.
                      "language": "A String", # Required. Programming language of the `code`.
                    },
                    "fileData": { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
                      "displayName": "A String", # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
                      "fileUri": "A String", # Required. The URI of the file in Google Cloud Storage.
                      "mimeType": "A String", # Required. The IANA standard MIME type of the source data.
                    },
                    "functionCall": { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
                      "args": { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
                        "a_key": "", # Properties of the object.
                      },
                      "id": "A String", # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
                      "name": "A String", # Optional. The name of the function to call. Matches FunctionDeclaration.name.
                      "partialArgs": [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
                        { # Partial argument value of the function call.
                          "boolValue": True or False, # Optional. Represents a boolean value.
                          "jsonPath": "A String", # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data".
                          "nullValue": "A String", # Optional. Represents a null value.
                          "numberValue": 3.14, # Optional. Represents a double value.
                          "stringValue": "A String", # Optional. Represents a string value.
                          "willContinue": True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
                        },
                      ],
                      "willContinue": True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
                    },
                    "functionResponse": { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
                      "id": "A String", # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
                      "name": "A String", # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
                      "parts": [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
                        { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
                          "audioMetadata": { # Metadata describes the input audio content. Set this in `Part.audio_metadata` or `FunctionResponsePart.audio_metadata` when `inline_data` or `file_data` contains audio to configure static audio preprocessing. # Optional. Audio metadata. The metadata should only be specified while the audio data is presented in inline_data or file_data.
                            "endOffset": "A String", # Optional. The end offset of the audio, relative to the start of the audio stream.
                            "startOffset": "A String", # Optional. The start offset of the audio, relative to the start of the audio stream.
                          },
                          "documentMetadata": { # Metadata describes the input document content. Set this in `Part.document_metadata` or `FunctionResponsePart.document_metadata` when `inline_data` or `file_data` contains a document to configure static document preprocessing. # Optional. Document metadata. The metadata should only be specified while the document data is presented in inline_data or file_data.
                            "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [PAGE_IMAGE] when DocumentMediaMetadata is set. When DocumentMediaMetadata is not set, default document processing is used (for example, page images for PDFs).
                              "A String",
                            ],
                            "endPage": 42, # Optional. 1-indexed inclusive end page.
                            "startPage": 42, # Optional. 1-indexed inclusive start page.
                          },
                          "fileData": { # URI based data for function response. # URI based data.
                            "displayName": "A String", # Optional. Display name of the file. Used to provide a label or filename to distinguish file data, and to reference the file from `FunctionResponse.response` (for example, via `{"$ref": ""}`).
                            "fileUri": "A String", # Required. URI.
                            "mimeType": "A String", # Required. The IANA standard MIME type of the source data.
                          },
                          "inlineData": { # Raw media bytes for function response. Text should not be sent as raw bytes, use the 'text' field. # Inline media bytes.
                            "data": "A String", # Required. Raw bytes.
                            "displayName": "A String", # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs, and to reference the blob from `FunctionResponse.response` (for example, via `{"$ref": ""}`).
                            "mimeType": "A String", # Required. The IANA standard MIME type of the source data.
                          },
                          "mediaProcessing": "A String", # Optional. Processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.
                          "mediaResolution": { # Media resolution for the input media of a `FunctionResponsePart`. # Optional. Media resolution for the input media.
                            "level": "A String", # The tokenization quality used for given media.
                          },
                          "spreadsheetMetadata": { # Metadata describes the input spreadsheet content. Set this in `Part.spreadsheet_metadata` or `FunctionResponsePart.spreadsheet_metadata` when `inline_data` or `file_data` contains a spreadsheet to configure static spreadsheet preprocessing. # Optional. Spreadsheet metadata. The metadata should only be specified while the spreadsheet data is presented in inline_data or file_data.
                            "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [DATA, FORMULAS] when SpreadsheetMetadata is set.
                              "A String",
                            ],
                            "sheetIndex": 42, # Optional. The 1-indexed index of the sheet to extract, in workbook order. If not set, all sheets are extracted.
                            "visibleCells": "A String", # Optional. The range of cells to extract, in A1 notation (e.g. "A1:D10"). If not set, the full occupied area of the sheet is used.
                          },
                          "videoMetadata": { # Metadata describes the input video content of a `FunctionResponsePart`. Set this in `FunctionResponsePart.video_metadata` when `inline_data` or `file_data` contains video to configure static video preprocessing. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
                            "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [FRAMES, AUDIO].
                              "A String",
                            ],
                            "endOffset": "A String", # Optional. The end offset of the video.
                            "fps": 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
                            "startOffset": "A String", # Optional. The start offset of the video.
                          },
                        },
                      ],
                      "response": { # Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.
                        "a_key": "", # Properties of the object.
                      },
                      "scheduling": "A String", # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
                    },
                    "inlineData": { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
                      "data": "A String", # Required. The raw bytes of the data.
                      "displayName": "A String", # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
                      "mimeType": "A String", # Required. The IANA standard MIME type of the source data.
                    },
                    "mediaProcessing": "A String", # Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.
                    "mediaResolution": { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
                      "level": "A String", # The tokenization quality used for given media.
                    },
                    "speechMetadata": { # Structured Metadata Sub-Message for Part # Optional. Turn-level metadata for speech generation (e.g. Daikon speaker/style). May be set alongside `text` to attach speaker and style information to a text part.
                      "speaker": "A String", # Optional. Identifies which speaker is speaking this turn.
                      "style": "A String", # Optional. Natural language description of the vocal style (e.g., "cheerful").
                    },
                    "spreadsheetMetadata": { # Metadata describes the input spreadsheet content. Set this in `Part.spreadsheet_metadata` or `FunctionResponsePart.spreadsheet_metadata` when `inline_data` or `file_data` contains a spreadsheet to configure static spreadsheet preprocessing. # Optional. Spreadsheet metadata. The metadata should only be specified while the spreadsheet data is presented in inline_data or file_data.
                      "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [DATA, FORMULAS] when SpreadsheetMetadata is set.
                        "A String",
                      ],
                      "sheetIndex": 42, # Optional. The 1-indexed index of the sheet to extract, in workbook order. If not set, all sheets are extracted.
                      "visibleCells": "A String", # Optional. The range of cells to extract, in A1 notation (e.g. "A1:D10"). If not set, the full occupied area of the sheet is used.
                    },
                    "text": "A String", # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
                    "thought": True or False, # Optional. Indicates whether the `part` represents the model's thought process or reasoning.
                    "thoughtSignature": "A String", # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
                    "toolCall": { # A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`. # Optional. Server-side tool call. This field is populated when the model predicts a tool invocation that should be executed on the server. The client is expected to echo this message back to the API.
                      "args": { # Optional. The tool call arguments. Example: {"arg1" : "value1", "arg2" : "value2" , ...}
                        "a_key": "", # Properties of the object.
                      },
                      "id": "A String", # Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`.
                      "toolType": "A String", # Optional. The type of tool that was called.
                    },
                    "toolResponse": { # The output from a server-side `ToolCall` execution. This message contains the results of a tool invocation that was initiated by a `ToolCall` from the model. The client should pass this `ToolResponse` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolCall`. # Optional. The output from a server-side `ToolCall` execution. This field is populated by the client with the results of executing the corresponding `ToolCall`.
                      "id": "A String", # Optional. The identifier of the tool call this response is for.
                      "response": { # Optional. The tool response.
                        "a_key": "", # Properties of the object.
                      },
                      "toolType": "A String", # Optional. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`.
                    },
                    "videoMetadata": { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
                      "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [FRAMES, AUDIO].
                        "A String",
                      ],
                      "endOffset": "A String", # Optional. The end offset of the video.
                      "fps": 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
                      "startOffset": "A String", # Optional. The start offset of the video.
                    },
                  },
                ],
              },
            ],
          },
        },
        "stateChange": { # A message representing a change in a task's state. # Optional. A change in the task's state.
          "newState": "A String", # Required. The new state of the task.
        },
        "statusDetailsChange": { # Represents a change to the task's status details. # Optional. A change to the framework-specific status details.
          "newTaskStatus": { # Represents the additional status details of a task. # Required. The complete state of the task's status *after* the change.
            "taskMessage": { # Represents a single message in a conversation, compliant with the A2A specification. # Optional. The message associated with the single-turn interaction between the user and the agent or agent and agent.
              "messageId": "A String", # Required. The unique identifier of the message.
              "metadata": { # Optional. A2A message may have extension_uris or reference_task_ids. They will be stored under metadata.
                "a_key": "", # Properties of the object.
              },
              "parts": [ # Required. The parts of the message.
                { # A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` must contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
                  "audioMetadata": { # Metadata describes the input audio content. Set this in `Part.audio_metadata` or `FunctionResponsePart.audio_metadata` when `inline_data` or `file_data` contains audio to configure static audio preprocessing. # Optional. Audio metadata. The metadata should only be specified while the audio data is presented in inline_data or file_data.
                    "endOffset": "A String", # Optional. The end offset of the audio, relative to the start of the audio stream.
                    "startOffset": "A String", # Optional. The start offset of the audio, relative to the start of the audio stream.
                  },
                  "audioTranscription": { # The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate `Part` with its own `AudioTranscription` carrying the `speaker_label`. # Optional. Audio (input or output) transcription. This is only set when this `Part` contains audio data.
                    "speakerLabel": "A String", # Optional. A label identifying the speaker of this audio segment (e.g. `spk_1`, `spk_2`). Present when `diarization` is set.
                    "text": "A String", # Required. The transcription text of this audio segment.
                    "words": [ # Optional. Detailed word-level transcriptions and timing details. Present when `word_timestamp` is set.
                      { # Information about a single recognized word.
                        "endOffset": "A String", # Optional. End offset in time of the word relative to the start of the audio.
                        "startOffset": "A String", # Optional. Start offset in time of the word relative to the start of the audio.
                        "word": "A String", # Required. Transcript of the word.
                      },
                    ],
                  },
                  "codeExecutionResult": { # Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. # Optional. The result of executing the ExecutableCode.
                    "id": "A String", # Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id.
                    "outcome": "A String", # Required. Outcome of the code execution.
                    "output": "A String", # Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
                  },
                  "documentMetadata": { # Metadata describes the input document content. Set this in `Part.document_metadata` or `FunctionResponsePart.document_metadata` when `inline_data` or `file_data` contains a document to configure static document preprocessing. # Optional. Document metadata. The metadata should only be specified while the document data is presented in inline_data or file_data.
                    "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [PAGE_IMAGE] when DocumentMediaMetadata is set. When DocumentMediaMetadata is not set, default document processing is used (for example, page images for PDFs).
                      "A String",
                    ],
                    "endPage": 42, # Optional. 1-indexed inclusive end page.
                    "startPage": 42, # Optional. 1-indexed inclusive start page.
                  },
                  "executableCode": { # Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. # Optional. Code generated by the model that is intended to be executed.
                    "code": "A String", # Required. The code to be executed.
                    "id": "A String", # Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`.
                    "language": "A String", # Required. Programming language of the `code`.
                  },
                  "fileData": { # URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. # Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
                    "displayName": "A String", # Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
                    "fileUri": "A String", # Required. The URI of the file in Google Cloud Storage.
                    "mimeType": "A String", # Required. The IANA standard MIME type of the source data.
                  },
                  "functionCall": { # A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. # Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
                    "args": { # Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.
                      "a_key": "", # Properties of the object.
                    },
                    "id": "A String", # Optional. The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
                    "name": "A String", # Optional. The name of the function to call. Matches FunctionDeclaration.name.
                    "partialArgs": [ # Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
                      { # Partial argument value of the function call.
                        "boolValue": True or False, # Optional. Represents a boolean value.
                        "jsonPath": "A String", # Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data".
                        "nullValue": "A String", # Optional. Represents a null value.
                        "numberValue": 3.14, # Optional. Represents a double value.
                        "stringValue": "A String", # Optional. Represents a string value.
                        "willContinue": True or False, # Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
                      },
                    ],
                    "willContinue": True or False, # Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
                  },
                  "functionResponse": { # The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. # Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
                    "id": "A String", # Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`.
                    "name": "A String", # Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.
                    "parts": [ # Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
                      { # A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
                        "audioMetadata": { # Metadata describes the input audio content. Set this in `Part.audio_metadata` or `FunctionResponsePart.audio_metadata` when `inline_data` or `file_data` contains audio to configure static audio preprocessing. # Optional. Audio metadata. The metadata should only be specified while the audio data is presented in inline_data or file_data.
                          "endOffset": "A String", # Optional. The end offset of the audio, relative to the start of the audio stream.
                          "startOffset": "A String", # Optional. The start offset of the audio, relative to the start of the audio stream.
                        },
                        "documentMetadata": { # Metadata describes the input document content. Set this in `Part.document_metadata` or `FunctionResponsePart.document_metadata` when `inline_data` or `file_data` contains a document to configure static document preprocessing. # Optional. Document metadata. The metadata should only be specified while the document data is presented in inline_data or file_data.
                          "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [PAGE_IMAGE] when DocumentMediaMetadata is set. When DocumentMediaMetadata is not set, default document processing is used (for example, page images for PDFs).
                            "A String",
                          ],
                          "endPage": 42, # Optional. 1-indexed inclusive end page.
                          "startPage": 42, # Optional. 1-indexed inclusive start page.
                        },
                        "fileData": { # URI based data for function response. # URI based data.
                          "displayName": "A String", # Optional. Display name of the file. Used to provide a label or filename to distinguish file data, and to reference the file from `FunctionResponse.response` (for example, via `{"$ref": ""}`).
                          "fileUri": "A String", # Required. URI.
                          "mimeType": "A String", # Required. The IANA standard MIME type of the source data.
                        },
                        "inlineData": { # Raw media bytes for function response. Text should not be sent as raw bytes, use the 'text' field. # Inline media bytes.
                          "data": "A String", # Required. Raw bytes.
                          "displayName": "A String", # Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs, and to reference the blob from `FunctionResponse.response` (for example, via `{"$ref": ""}`).
                          "mimeType": "A String", # Required. The IANA standard MIME type of the source data.
                        },
                        "mediaProcessing": "A String", # Optional. Processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.
                        "mediaResolution": { # Media resolution for the input media of a `FunctionResponsePart`. # Optional. Media resolution for the input media.
                          "level": "A String", # The tokenization quality used for given media.
                        },
                        "spreadsheetMetadata": { # Metadata describes the input spreadsheet content. Set this in `Part.spreadsheet_metadata` or `FunctionResponsePart.spreadsheet_metadata` when `inline_data` or `file_data` contains a spreadsheet to configure static spreadsheet preprocessing. # Optional. Spreadsheet metadata. The metadata should only be specified while the spreadsheet data is presented in inline_data or file_data.
                          "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [DATA, FORMULAS] when SpreadsheetMetadata is set.
                            "A String",
                          ],
                          "sheetIndex": 42, # Optional. The 1-indexed index of the sheet to extract, in workbook order. If not set, all sheets are extracted.
                          "visibleCells": "A String", # Optional. The range of cells to extract, in A1 notation (e.g. "A1:D10"). If not set, the full occupied area of the sheet is used.
                        },
                        "videoMetadata": { # Metadata describes the input video content of a `FunctionResponsePart`. Set this in `FunctionResponsePart.video_metadata` when `inline_data` or `file_data` contains video to configure static video preprocessing. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
                          "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [FRAMES, AUDIO].
                            "A String",
                          ],
                          "endOffset": "A String", # Optional. The end offset of the video.
                          "fps": 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
                          "startOffset": "A String", # Optional. The start offset of the video.
                        },
                      },
                    ],
                    "response": { # Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.
                      "a_key": "", # Properties of the object.
                    },
                    "scheduling": "A String", # Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.
                  },
                  "inlineData": { # A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. # Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
                    "data": "A String", # Required. The raw bytes of the data.
                    "displayName": "A String", # Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.
                    "mimeType": "A String", # Required. The IANA standard MIME type of the source data.
                  },
                  "mediaProcessing": "A String", # Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.
                  "mediaResolution": { # per part media resolution. Media resolution for the input media. # per part media resolution. Media resolution for the input media.
                    "level": "A String", # The tokenization quality used for given media.
                  },
                  "speechMetadata": { # Structured Metadata Sub-Message for Part # Optional. Turn-level metadata for speech generation (e.g. Daikon speaker/style). May be set alongside `text` to attach speaker and style information to a text part.
                    "speaker": "A String", # Optional. Identifies which speaker is speaking this turn.
                    "style": "A String", # Optional. Natural language description of the vocal style (e.g., "cheerful").
                  },
                  "spreadsheetMetadata": { # Metadata describes the input spreadsheet content. Set this in `Part.spreadsheet_metadata` or `FunctionResponsePart.spreadsheet_metadata` when `inline_data` or `file_data` contains a spreadsheet to configure static spreadsheet preprocessing. # Optional. Spreadsheet metadata. The metadata should only be specified while the spreadsheet data is presented in inline_data or file_data.
                    "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [DATA, FORMULAS] when SpreadsheetMetadata is set.
                      "A String",
                    ],
                    "sheetIndex": 42, # Optional. The 1-indexed index of the sheet to extract, in workbook order. If not set, all sheets are extracted.
                    "visibleCells": "A String", # Optional. The range of cells to extract, in A1 notation (e.g. "A1:D10"). If not set, the full occupied area of the sheet is used.
                  },
                  "text": "A String", # Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
                  "thought": True or False, # Optional. Indicates whether the `part` represents the model's thought process or reasoning.
                  "thoughtSignature": "A String", # Optional. An opaque signature for the thought so it can be reused in subsequent requests.
                  "toolCall": { # A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`. # Optional. Server-side tool call. This field is populated when the model predicts a tool invocation that should be executed on the server. The client is expected to echo this message back to the API.
                    "args": { # Optional. The tool call arguments. Example: {"arg1" : "value1", "arg2" : "value2" , ...}
                      "a_key": "", # Properties of the object.
                    },
                    "id": "A String", # Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`.
                    "toolType": "A String", # Optional. The type of tool that was called.
                  },
                  "toolResponse": { # The output from a server-side `ToolCall` execution. This message contains the results of a tool invocation that was initiated by a `ToolCall` from the model. The client should pass this `ToolResponse` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolCall`. # Optional. The output from a server-side `ToolCall` execution. This field is populated by the client with the results of executing the corresponding `ToolCall`.
                    "id": "A String", # Optional. The identifier of the tool call this response is for.
                    "response": { # Optional. The tool response.
                      "a_key": "", # Properties of the object.
                    },
                    "toolType": "A String", # Optional. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`.
                  },
                  "videoMetadata": { # Provides metadata for a video, including the start and end offsets for clipping and the frame rate. # Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
                    "contentLayers": [ # Optional. Content layers to return. If empty, defaults to [FRAMES, AUDIO].
                      "A String",
                    ],
                    "endOffset": "A String", # Optional. The end offset of the video.
                    "fps": 3.14, # Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
                    "startOffset": "A String", # Optional. The start offset of the video.
                  },
                },
              ],
              "role": "A String", # Required. The role of the sender of the message. e.g. "user", "agent"
            },
          },
        },
      },
      "eventSequenceNumber": "A String", # Required. The sequence number of the event. This is used to uniquely identify the event within the task and order events chronologically. This is a id generated by the SDK.
    },
  ],
}
list_next(previous_request, previous_response)
Retrieves the next page of results.

Args:
  previous_request: The request for the previous page. (required)
  previous_response: The response from the request for the previous page. (required)

Returns:
  A request object that you can call 'execute()' on to request the next
  page. Returns None if there are no more items in the collection.