auth = dmda.DomoTokenAuth(
    domo_access_token=os.environ["DOMO_ACCESS_TOKEN"],
    domo_instance=os.environ["DOMO_INSTANCE"],
)

await auth.who_am_i()

model_id = "48707704-213c-4c82-8a7d-69505b50a8de"
model_version_id = "1.0.9"
starting_tile = 'Start HelpDeskMafia'

fileset_id = "30d51a7e-15f9-4dce-8284-be392c392f2d"

VectorDB


source

create_filesets_index

 create_filesets_index (auth:domolibrary.client.DomoAuth.DomoAuth,
                        index_id, embedding_model:str='domo.domo_ai.domo-
                        embed-text-multilingual-v1:cohere')

Creates a new vectorDB index.

get one domo FileSet


source

get_fileset

 get_fileset (auth:domolibrary.client.DomoAuth.DomoAuth, fileset_id:str,
              debug_api:bool=False, debug_num_stacks_to_drop=1,
              parent_class:str=None, session:httpx.AsyncClient=None)
# Sample implementation of get fileset

await get_fileset(auth=auth, fileset_id=fileset_id, debug_api=False)
ResponseGetData(status=200, response={'id': '30d51a7e-15f9-4dce-8284-be392c392f2d', 'name': 'Test AF', 'description': 'Upload photos', 'aiEnabled': False, 'batchType': 'INCREMENTAL', 'connector': 'DOMO', 'created': '2025-03-17T17:00:12.836646Z', 'createdBy': 2072616249, 'updated': '2025-03-17T21:42:13.680649Z', 'updatedBy': 2072616249, 'owner': '2072616249', 'accountId': 0, 'permission': 'OWNER', 'size': 925213, 'imageCount': 2, 'audioCount': 0, 'videoCount': 0, 'documentCount': 0, 'textCount': 0, 'otherCount': 1}, is_success=True, parent_class=None)

get fileset files


source

get_fileset_files

 get_fileset_files (auth:domolibrary.client.DomoAuth.DomoAuth,
                    domo_fileset_id:str, body:dict=None,
                    debug_api:bool=False, debug_num_stacks_to_drop=1,
                    parent_class:str=None, session:httpx.AsyncClient=None)
# Sample implementation of get fileset files

res = await get_fileset_files(auth=auth, domo_fileset_id=fileset_id, debug_api=False)
res.response["files"][0:1]
[{'id': 'a2d707b7-5712-440d-b74a-300f99f531fe',
  'path': 'new folder',
  'name': 'new folder',
  'size': None,
  'created': '2025-03-17T21:42:13.630171Z',
  'createdBy': 2072616249,
  'fileType': 'DIRECTORY'}]