REST Resource: projects.locations.notebooks.sources

Resource: Source

Source represents a single source of content.

JSON representation
{
  "name": string,
  "title": string,
  "sourceId": {
    object (SourceId)
  },
  "metadata": {
    object (SourceMetadata)
  }
}
Fields
name

string

Identifier. The full resource name of the source. Format: projects/{project}/locations/{location}/notebooks/{notebook}/sources/{sourceId}.

This field must be a UTF-8 encoded string with a length limit of 1024 characters.

title

string

Optional. Title of the source.

sourceId

object (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

object (SourceMetadata)

metadata about the source.

SourceId

SourceId is the last segment of the source's resource name.

JSON representation
{
  "id": string
}
Fields
id

string

The ID of the source.

SourceMetadata

Represents the metadata of a source and some additional information.

JSON representation
{

  // Union field metadata can be only one of the following:
  "agentspaceMetadata": {
    object (AgentspaceMetadata)
  }
  // End of list of possible types for union field metadata.
  "wordCount": integer,
  "tokenCount": integer,
  "sourceAddedTimestamp": string
}
Fields
Union field metadata. Metadata for the source. metadata can be only one of the following:
agentspaceMetadata

object (AgentspaceMetadata)

metadata for an agentspace source.

wordCount

integer

The word count of the source.

tokenCount

integer

The number of tokens in the source.

sourceAddedTimestamp

string (Timestamp format)

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: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

AgentspaceMetadata

metadata about an agentspace source.

JSON representation
{
  "documentName": string,
  "documentTitle": string
}
Fields
documentName

string

Output only. The full document name in Agentspace.

documentTitle

string

Output only. The title of the document.

Methods

batchCreate

Creates a list of Sources.

batchDelete

Deletes multiple sources

get

Gets a Source.