GET
/
api
/
v1
/
data_sources
/
{data_source_id}
import os
from syllable_sdk import SyllableSDK


with SyllableSDK(
    api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:

    res = ss_client.data_sources.get_by_id(data_source_id=931598)

    # Handle response
    print(res)
{
  "name": "Rain",
  "description": "Information about rain.",
  "labels": [
    "Weather Info"
  ],
  "chunk": false,
  "chunk_delimiter": "",
  "id": 1,
  "edit_comments": "Added new info",
  "updated_at": "2023-11-07T05:31:56Z",
  "last_updated_by": "user@email.com",
  "text": "<string>"
}

Authorizations

Syllable-API-Key
string
header
required

Path Parameters

data_source_id
integer
required

Response

200
application/json
Successful Response

Metadata about a data source, along with the text. A data source is a blob of text that can be made available to an agent's general info tools to provide more context to the agent when generating its responses. For more information, see Console docs.