Resource: Source
Source represents a single source of content.
JSON representation |
---|
{ "name": string, "title": string, "sourceId": { object ( |
Fields | |
---|---|
name |
Identifier. The full resource name of the source. Format: This field must be a UTF-8 encoded string with a length limit of 1024 characters. |
title |
Optional. Title of the source. |
sourceId |
Optional. Source id, which is the last segment of the source's resource name. This is to make it similar with notebooklm API. |
metadata |
metadata about the source. |
SourceId
SourceId is the last segment of the source's resource name.
JSON representation |
---|
{ "id": string } |
Fields | |
---|---|
id |
The ID of the source. |
SourceMetadata
Represents the metadata of a source and some additional information.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field metadata . Metadata for the source. metadata can be only one of the following: |
|
agentspaceMetadata |
metadata for an agentspace source. |
wordCount |
The word count of the source. |
tokenCount |
The number of tokens in the source. |
sourceAddedTimestamp |
The timestamp the source was added. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
AgentspaceMetadata
metadata about an agentspace source.
JSON representation |
---|
{ "documentName": string, "documentTitle": string } |
Fields | |
---|---|
documentName |
Output only. The full document name in Agentspace. |
documentTitle |
Output only. The title of the document. |
Methods |
|
---|---|
|
Creates a list of Source s. |
|
Deletes multiple sources |
|
Gets a Source . |