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=87219)
# 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>"
}
Fetch a given data source, including its text.
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=87219)
# 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>"
}
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.