DomoFileset
DomoFileset ¶
DomoFileset
dataclass
¶
DomoFileset(
auth: DomoAuth,
id: str,
raw: dict = dict(),
name: str | None = None,
description: str | None = None,
ai_enabled: bool | None = None,
index_status: str | None = None,
connector: str | None = None,
created: str | None = None,
created_by: int | None = None,
updated: str | None = None,
updated_by: int | None = None,
owner: str | None = None,
size: int | None = None,
file_count: int | None = None,
account_id: int | None = None,
connector_context: str | None = None,
permission: str | None = None,
)
Bases: DomoEntity
Represents a single Domo Fileset entity.
delete
async
¶
delete(
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
**context_kwargs: Any
) -> bool | ResponseGetData
Delete this fileset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
return_raw
|
bool
|
If True, return the raw ResponseGetData. |
False
|
debug_api
|
bool
|
If True, print API debug info. |
False
|
session
|
AsyncClient | None
|
Optional httpx.AsyncClient session. |
None
|
context
|
RouteContext | None
|
Optional RouteContext. |
None
|
**context_kwargs
|
Any
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
bool | ResponseGetData
|
|
Raises:
| Type | Description |
|---|---|
RouteError
|
If the underlying route request fails. |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 | |
from_dict
classmethod
¶
from_dict(
auth: DomoAuth, obj: dict[str, Any]
) -> DomoFileset
Build a fileset from an API payload.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
auth
|
DomoAuth
|
Authentication object for Domo APIs. |
required |
obj
|
dict[str, Any]
|
Fileset payload as returned by the fileset routes. Missing
keys become |
required |
Returns:
| Type | Description |
|---|---|
DomoFileset
|
The populated |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | |
get_by_id
async
classmethod
¶
get_by_id(
auth: DomoAuth,
fileset_id: str,
debug_num_stacks_to_drop: int = 2,
debug_api: bool = False,
session: AsyncClient | None = None,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs: Any
) -> DomoFileset | ResponseGetData
Retrieve a fileset by ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
auth
|
DomoAuth
|
Authentication object for Domo APIs. |
required |
fileset_id
|
str
|
The fileset ID. |
required |
debug_num_stacks_to_drop
|
int
|
Stack frames to drop in debug output. |
2
|
return_raw
|
bool
|
If True, return the raw ResponseGetData. |
False
|
debug_api
|
bool
|
If True, print API debug info. |
False
|
session
|
AsyncClient | None
|
Optional httpx.AsyncClient session. |
None
|
context
|
RouteContext | None
|
Optional RouteContext. |
None
|
**context_kwargs
|
Any
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
DomoFileset | ResponseGetData
|
A |
Raises:
| Type | Description |
|---|---|
RouteError
|
If the underlying route request fails. |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | |
get_entity_by_id
async
classmethod
¶
get_entity_by_id(
auth: DomoAuth,
entity_id: str,
debug_num_stacks_to_drop: int = 2,
debug_api: bool = False,
session: AsyncClient | None = None,
check_if_published: bool | None = None,
parent_auth_retrieval_fn: Any | None = None,
parent_auth: Any | None = None,
**kwargs: Any
) -> DomoFileset
Internal wrapper used by the base refresh() method.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
auth
|
DomoAuth
|
Authentication object for Domo APIs. |
required |
entity_id
|
str
|
The fileset ID. |
required |
debug_num_stacks_to_drop
|
int
|
Stack frames to drop in debug output. |
2
|
debug_api
|
bool
|
If True, print API debug info. |
False
|
session
|
AsyncClient | None
|
Optional httpx.AsyncClient session. |
None
|
check_if_published
|
bool | None
|
Unused; accepted for base-class compatibility. |
None
|
parent_auth_retrieval_fn
|
Any | None
|
Unused; accepted for base-class compatibility. |
None
|
parent_auth
|
Any | None
|
Unused; accepted for base-class compatibility. |
None
|
**kwargs
|
Any
|
Ignored additional parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
DomoFileset
|
The retrieved |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | |
update
async
¶
update(
body: dict[str, Any],
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
**context_kwargs: Any
) -> DomoFileset | ResponseGetData
Update this fileset, then refresh it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
body
|
dict[str, Any]
|
Fields to update. |
required |
return_raw
|
bool
|
If True, return the raw ResponseGetData. |
False
|
debug_api
|
bool
|
If True, print API debug info. |
False
|
session
|
AsyncClient | None
|
Optional httpx.AsyncClient session. |
None
|
context
|
RouteContext | None
|
Optional RouteContext. |
None
|
**context_kwargs
|
Any
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
DomoFileset | ResponseGetData
|
This fileset (refreshed), or the raw |
Raises:
| Type | Description |
|---|---|
RouteError
|
If the underlying route request fails. |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
DomoFilesetAccessController ¶
DomoFilesetAccessController(auth: DomoAuth, parent)
Bases: DomoAccessRelationshipController
Access controller for Domo filesets.
Source code in src/crew_dcs/classes/DomoFileset/access_controller.py
24 25 26 27 | |
add_owners
async
¶
add_owners(
user_id: int,
*,
context: RouteContext | None = None,
**context_kwargs
) -> bool
Deprecated alias for transfer_owner — which TRANSFERS, not adds.
Source code in src/crew_dcs/classes/DomoFileset/access_controller.py
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 | |
create_relationship
async
¶
create_relationship(
target_entity_id: str,
target_entity_type: EntityType,
relationship_type: RelationshipType,
**kwargs
) -> bool
Create an access relationship for the fileset.
Source code in src/crew_dcs/classes/DomoFileset/access_controller.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | |
get_accesslist
async
¶
get_accesslist(
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> list[Relationship]
Get access list for the fileset as relationships.
Source code in src/crew_dcs/classes/DomoFileset/access_controller.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | |
get_direct_relationships
async
¶
get_direct_relationships() -> list[Relationship]
Get direct relationships for the fileset.
Source code in src/crew_dcs/classes/DomoFileset/access_controller.py
33 34 35 | |
get_owners
async
¶
get_owners(
*, context: RouteContext | None = None, **context_kwargs
) -> list[Relationship]
Get owner relationships for the fileset.
Source code in src/crew_dcs/classes/DomoFileset/access_controller.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | |
get_stats
async
¶
get_stats(
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> dict | Any
Get file type counts and index status for the fileset.
Source code in src/crew_dcs/classes/DomoFileset/access_controller.py
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 | |
remove_owners
async
¶
remove_owners(**_kwargs) -> bool
Remove owners from the fileset.
Source code in src/crew_dcs/classes/DomoFileset/access_controller.py
198 199 200 201 202 203 204 205 | |
remove_relationship
async
¶
remove_relationship(
target_entity_id: str,
target_entity_type: EntityType,
relationship_type: RelationshipType,
**kwargs
) -> bool
Remove an access relationship for the fileset.
Source code in src/crew_dcs/classes/DomoFileset/access_controller.py
59 60 61 62 63 64 65 66 67 68 69 | |
share
async
¶
share(
user_ids: list[int] | None = None,
group_ids: list[int] | None = None,
*,
context: RouteContext | None = None,
**context_kwargs
) -> bool
Share the fileset with users or groups (READ access only).
Note: The Domo fileset API only supports 'READ' as a non-owner permission. Owner permission cannot be modified via the access endpoint.
Source code in src/crew_dcs/classes/DomoFileset/access_controller.py
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 | |
transfer_owner
async
¶
transfer_owner(
user_id: int,
*,
context: RouteContext | None = None,
**context_kwargs
) -> bool
TRANSFER ownership of the fileset to user_id.
This is not an "add". It calls transfer_fileset_ownership, which moves
the fileset's owner — and remove_owners raises NotImplementedError,
so there is no undo through this library.
⚠️ The access list will not show you that this happened. Verified on
domo-community 2026-08-31 with a throwaway fileset: after the call the
fileset's scalar owner had moved from the caller to user_id, but
get_fileset_access listed BOTH principals with permission OWNER. Read
back get_fileset_by_id(...).response["owner"], not the access list, to
see who owns it now — checking the ACL makes a transfer look additive.
Named add_owners until it was renamed; add_owners remains as a
deprecated alias. The old name shared a spelling with
DomoCardAccessController.add_owners and
DomoPageAccessController.add_owners, which really are additive, so the
same call read as safe on three controllers and was destructive on one.
See .agents/guides/access-and-sharing.md.
Source code in src/crew_dcs/classes/DomoFileset/access_controller.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | |
DomoFileset_Files
dataclass
¶
DomoFileset_Files(parent: DomoEntity)
Bases: DomoSubEntity
Sub-entity for interacting with files within a DomoFileset.
delete_by_id
async
¶
delete_by_id(
file_id: str,
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
**context_kwargs: Any
) -> bool | ResponseGetData
Delete a file from this fileset by file ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_id
|
str
|
The file ID. |
required |
return_raw
|
bool
|
If True, return the raw ResponseGetData. |
False
|
debug_api
|
bool
|
If True, print API debug info. |
False
|
session
|
AsyncClient | None
|
Optional httpx.AsyncClient session. |
None
|
context
|
RouteContext | None
|
Optional RouteContext. |
None
|
**context_kwargs
|
Any
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
bool | ResponseGetData
|
|
Raises:
| Type | Description |
|---|---|
RouteError
|
If the underlying route request fails. |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 | |
delete_by_path
async
¶
delete_by_path(
file_path: str,
body: dict[str, Any] | None = None,
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
**context_kwargs: Any
) -> bool | ResponseGetData
Delete a file from this fileset by path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_path
|
str
|
Path of the file within the fileset. |
required |
body
|
dict[str, Any] | None
|
Optional custom request body; overrides |
None
|
return_raw
|
bool
|
If True, return the raw ResponseGetData. |
False
|
debug_api
|
bool
|
If True, print API debug info. |
False
|
session
|
AsyncClient | None
|
Optional httpx.AsyncClient session. |
None
|
context
|
RouteContext | None
|
Optional RouteContext. |
None
|
**context_kwargs
|
Any
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
bool | ResponseGetData
|
|
Raises:
| Type | Description |
|---|---|
RouteError
|
If the underlying route request fails. |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 | |
download
async
¶
download(
file_id: str,
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
**context_kwargs: Any
) -> bytes | ResponseGetData
Download a file from this fileset by file ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_id
|
str
|
The file ID. |
required |
return_raw
|
bool
|
If True, return the raw ResponseGetData. |
False
|
debug_api
|
bool
|
If True, print API debug info. |
False
|
session
|
AsyncClient | None
|
Optional httpx.AsyncClient session. |
None
|
context
|
RouteContext | None
|
Optional RouteContext. |
None
|
**context_kwargs
|
Any
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
bytes | ResponseGetData
|
The raw file bytes, or the raw |
Raises:
| Type | Description |
|---|---|
RouteError
|
If the underlying route request fails. |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 | |
download_by_path
async
¶
download_by_path(
file_path: str,
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
**context_kwargs: Any
) -> bytes | ResponseGetData
Download a file from this fileset by path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_path
|
str
|
Path of the file within the fileset, e.g. |
required |
return_raw
|
bool
|
If True, return the raw ResponseGetData. |
False
|
debug_api
|
bool
|
If True, print API debug info. |
False
|
session
|
AsyncClient | None
|
Optional httpx.AsyncClient session. |
None
|
context
|
RouteContext | None
|
Optional RouteContext. |
None
|
**context_kwargs
|
Any
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
bytes | ResponseGetData
|
The raw file bytes, or the raw |
Raises:
| Type | Description |
|---|---|
RouteError
|
If the underlying route request fails. |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 | |
get_by_id
async
¶
get_by_id(
file_id: str,
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
**context_kwargs: Any
) -> dict | ResponseGetData
Get a file from this fileset by file ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_id
|
str
|
The file ID. |
required |
return_raw
|
bool
|
If True, return the raw ResponseGetData. |
False
|
debug_api
|
bool
|
If True, print API debug info. |
False
|
session
|
AsyncClient | None
|
Optional httpx.AsyncClient session. |
None
|
context
|
RouteContext | None
|
Optional RouteContext. |
None
|
**context_kwargs
|
Any
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
dict | ResponseGetData
|
The file payload, or the raw |
Raises:
| Type | Description |
|---|---|
RouteError
|
If the underlying route request fails. |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 | |
get_by_path
async
¶
get_by_path(
file_path: str,
body: dict[str, Any] | None = None,
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
**context_kwargs: Any
) -> dict | ResponseGetData
Get a file from this fileset by path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_path
|
str
|
Path of the file within the fileset. |
required |
body
|
dict[str, Any] | None
|
Optional custom request body; overrides |
None
|
return_raw
|
bool
|
If True, return the raw ResponseGetData. |
False
|
debug_api
|
bool
|
If True, print API debug info. |
False
|
session
|
AsyncClient | None
|
Optional httpx.AsyncClient session. |
None
|
context
|
RouteContext | None
|
Optional RouteContext. |
None
|
**context_kwargs
|
Any
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
dict | ResponseGetData
|
The file payload, or the raw |
Raises:
| Type | Description |
|---|---|
RouteError
|
If the underlying route request fails. |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 | |
search
async
¶
search(
directory_path: str | None = None,
loop_until_end: bool = False,
limit: int = 100,
maximum: int = 0,
body: dict[str, Any] | None = None,
return_raw: bool = False,
debug_api: bool = False,
debug_loop: bool = False,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
**context_kwargs: Any
) -> list[dict] | ResponseGetData
Search files within this fileset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
directory_path
|
str | None
|
Optional directory path to scope the search. |
None
|
loop_until_end
|
bool
|
If True, retrieve all files across all pages. |
False
|
limit
|
int
|
Maximum files per request (pagination). |
100
|
maximum
|
int
|
Maximum total files to retrieve (0 = no limit). |
0
|
body
|
dict[str, Any] | None
|
Optional custom search body. |
None
|
return_raw
|
bool
|
If True, return the raw ResponseGetData. |
False
|
debug_api
|
bool
|
If True, print API debug info. |
False
|
debug_loop
|
bool
|
If True, print pagination debug info. |
False
|
session
|
AsyncClient | None
|
Optional httpx.AsyncClient session. |
None
|
context
|
RouteContext | None
|
Optional RouteContext. |
None
|
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 | |
upload
async
¶
upload(
file_name: str,
file_content: bytes | str,
directory_path: str | None = None,
content_type: str | None = None,
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
**context_kwargs: Any
) -> dict | ResponseGetData
Upload a file to this fileset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_name
|
str
|
Name of the file, including extension. |
required |
file_content
|
bytes | str
|
File content as bytes or text. |
required |
directory_path
|
str | None
|
Optional target directory within the fileset. |
None
|
content_type
|
str | None
|
MIME type; defaults to |
None
|
return_raw
|
bool
|
If True, return the raw ResponseGetData. |
False
|
debug_api
|
bool
|
If True, print API debug info. |
False
|
session
|
AsyncClient | None
|
Optional httpx.AsyncClient session. |
None
|
context
|
RouteContext | None
|
Optional RouteContext. |
None
|
**context_kwargs
|
Any
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
dict | ResponseGetData
|
The upload response payload, or the raw |
Raises:
| Type | Description |
|---|---|
RouteError
|
If the underlying route request fails. |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 | |
DomoFileset_Index
dataclass
¶
DomoFileset_Index(parent: DomoEntity)
Bases: DomoSubEntity
Sub-entity for interacting with index/AI features of a DomoFileset.
create
async
¶
create(
index_id: str,
embedding_model: str = "domo.domo_ai.domo-embed-text-multilingual-v1:cohere",
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
**context_kwargs: Any
) -> dict | ResponseGetData
Create a vectorDB index for this fileset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index_id
|
str
|
ID for the new index. |
required |
embedding_model
|
str
|
Embedding model identifier. |
'domo.domo_ai.domo-embed-text-multilingual-v1:cohere'
|
return_raw
|
bool
|
If True, return the raw ResponseGetData. |
False
|
debug_api
|
bool
|
If True, print API debug info. |
False
|
session
|
AsyncClient | None
|
Optional httpx.AsyncClient session. |
None
|
context
|
RouteContext | None
|
Optional RouteContext. |
None
|
**context_kwargs
|
Any
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
dict | ResponseGetData
|
The created index payload, or the raw |
Raises:
| Type | Description |
|---|---|
RouteError
|
If the underlying route request fails. |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 | |
get_access
async
¶
get_access(
index_id: str,
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
**context_kwargs: Any
) -> dict | ResponseGetData
Get the access list for a Recall (vectorDB) index.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index_id
|
str
|
The ID of the Recall index, as passed to |
required |
return_raw
|
bool
|
If True, return the raw ResponseGetData. |
False
|
debug_api
|
bool
|
If True, print API debug info. |
False
|
session
|
AsyncClient | None
|
Optional httpx.AsyncClient session. |
None
|
context
|
RouteContext | None
|
Optional RouteContext. |
None
|
**context_kwargs
|
Any
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
dict | ResponseGetData
|
The access list payload, or the raw |
dict | ResponseGetData
|
|
Raises:
| Type | Description |
|---|---|
RouteError
|
If the underlying route request fails. |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 | |
query
async
¶
query(
query_text: str,
directory_path: str | None = None,
top_k: int | None = None,
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
**context_kwargs: Any
) -> list[dict] | ResponseGetData
Query the fileset index for relevant documents.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query_text
|
str
|
Natural-language query. |
required |
directory_path
|
str | None
|
Optional directory to scope the query. |
None
|
top_k
|
int | None
|
Optional maximum number of matches. |
None
|
return_raw
|
bool
|
If True, return the raw ResponseGetData. |
False
|
debug_api
|
bool
|
If True, print API debug info. |
False
|
session
|
AsyncClient | None
|
Optional httpx.AsyncClient session. |
None
|
context
|
RouteContext | None
|
Optional RouteContext. |
None
|
**context_kwargs
|
Any
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
list[dict] | ResponseGetData
|
The query response payload, or the raw |
Raises:
| Type | Description |
|---|---|
RouteError
|
If the underlying route request fails. |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 | |
rag_chat
async
¶
rag_chat(
question: str,
*,
directory_path: str | None = None,
top_k: int = 5,
score_threshold: float = 0.6,
llm_url: str | None = None,
llm_model: str = "qwen3.5-9b",
llm_api_key: str = "no-key-required",
system_prompt: str | None = None,
return_context: bool = False,
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
context: RouteContext | None = None,
**context_kwargs: Any
) -> dict | ResponseGetData
RAG chat: query fileset, assemble context, synthesize answer with LLM.
This is the "Option C" convenience method that wraps: 1. fileset_routes.query_fileset() — retrieve relevant chunks 2. Context assembly — filter by score, format chunks 3. LLM synthesis — call external LLM (gateway) or Domo native LLM
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
question
|
str
|
The user's question. |
required |
directory_path
|
str | None
|
Optional directory to scope the search (e.g., "api-reference/"). |
None
|
top_k
|
int
|
Maximum number of chunks to retrieve. |
5
|
score_threshold
|
float
|
Minimum relevance score to include (default 0.6). |
0.6
|
llm_url
|
str | None
|
External LLM endpoint URL (e.g., "http://localhost:7630/v1/chat/completions"). If None, attempts to use Domo native LLM (may not be available on all instances). |
None
|
llm_model
|
str
|
Model name for external LLM (default "qwen3.5-9b"). |
'qwen3.5-9b'
|
llm_api_key
|
str
|
API key for external LLM (default "no-key-required" for gateway). |
'no-key-required'
|
system_prompt
|
str | None
|
Override the default RAG system prompt. |
None
|
return_context
|
bool
|
If True, include raw context chunks in response. |
False
|
return_raw
|
bool
|
If True, return raw ResponseGetData from LLM call. |
False
|
debug_api
|
bool
|
Enable API debug logging. |
False
|
session
|
AsyncClient | None
|
Optional shared httpx.AsyncClient. |
None
|
context
|
RouteContext | None
|
Route context. |
None
|
**context_kwargs
|
Any
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
dict | ResponseGetData
|
dict with: - "answer": The synthesized answer string. - "sources": List of {"path": str, "score": float}. - "context": List of chunk dicts (only if return_context=True). |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 | |
DomoFilesets
dataclass
¶
DomoFilesets(auth: DomoAuth)
Bases: DomoManager
Collection manager for DomoFileset objects.
create
async
¶
create(
name: str,
description: str | None = None,
body: dict[str, Any] | None = None,
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
**context_kwargs: Any
) -> DomoFileset | ResponseGetData
Create a new fileset and return a DomoFileset instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Name of the new fileset. |
required |
description
|
str | None
|
Optional description. |
None
|
body
|
dict[str, Any] | None
|
Optional full request body; overrides |
None
|
return_raw
|
bool
|
If True, return the raw ResponseGetData. |
False
|
debug_api
|
bool
|
If True, print API debug info. |
False
|
session
|
AsyncClient | None
|
Optional httpx.AsyncClient session. |
None
|
context
|
RouteContext | None
|
Optional RouteContext. |
None
|
**context_kwargs
|
Any
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
DomoFileset | ResponseGetData
|
The created |
Raises:
| Type | Description |
|---|---|
RouteError
|
If the underlying route request fails. |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 | |
get
async
¶
get(
limit: int | None = None,
offset: int | None = None,
body: dict[str, Any] | None = None,
return_raw: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
context: RouteContext | None = None,
**context_kwargs: Any
) -> list[DomoFileset] | ResponseGetData
Search or list filesets and return DomoFileset instances.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
limit
|
int | None
|
Unused; accepted for interface compatibility. |
None
|
offset
|
int | None
|
Unused; accepted for interface compatibility. |
None
|
body
|
dict[str, Any] | None
|
Optional custom search body. |
None
|
return_raw
|
bool
|
If True, return the raw ResponseGetData. |
False
|
debug_api
|
bool
|
If True, print API debug info. |
False
|
session
|
AsyncClient | None
|
Optional httpx.AsyncClient session. |
None
|
context
|
RouteContext | None
|
Optional RouteContext. |
None
|
**context_kwargs
|
Any
|
Additional context parameters. |
{}
|
Returns:
| Type | Description |
|---|---|
list[DomoFileset] | ResponseGetData
|
A list of |
Raises:
| Type | Description |
|---|---|
RouteError
|
If the underlying route request fails. |
Source code in src/crew_dcs/classes/DomoFileset/__init__.py
294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 | |