|
31 | 31 | ) |
32 | 32 |
|
33 | 33 | if TYPE_CHECKING: |
34 | | - from .resources import chat, agents, models, embeddings |
| 34 | + from .resources import chat, agents, models, embeddings, indexing_jobs, knowledge_bases |
35 | 35 | from .resources.chat import ChatResource, AsyncChatResource |
36 | 36 | from .resources.models import ModelsResource, AsyncModelsResource |
37 | 37 | from .resources.embeddings import EmbeddingsResource, AsyncEmbeddingsResource |
38 | 38 | from .resources.agents.agents import AgentsResource, AsyncAgentsResource |
| 39 | + from .resources.indexing_jobs import IndexingJobsResource, AsyncIndexingJobsResource |
| 40 | + from .resources.knowledge_bases.knowledge_bases import KnowledgeBasesResource, AsyncKnowledgeBasesResource |
39 | 41 |
|
40 | 42 | __all__ = [ |
41 | 43 | "Timeout", |
@@ -110,6 +112,18 @@ def agents(self) -> AgentsResource: |
110 | 112 |
|
111 | 113 | return AgentsResource(self) |
112 | 114 |
|
| 115 | + @cached_property |
| 116 | + def indexing_jobs(self) -> IndexingJobsResource: |
| 117 | + from .resources.indexing_jobs import IndexingJobsResource |
| 118 | + |
| 119 | + return IndexingJobsResource(self) |
| 120 | + |
| 121 | + @cached_property |
| 122 | + def knowledge_bases(self) -> KnowledgeBasesResource: |
| 123 | + from .resources.knowledge_bases import KnowledgeBasesResource |
| 124 | + |
| 125 | + return KnowledgeBasesResource(self) |
| 126 | + |
113 | 127 | @cached_property |
114 | 128 | def chat(self) -> ChatResource: |
115 | 129 | from .resources.chat import ChatResource |
@@ -302,6 +316,18 @@ def agents(self) -> AsyncAgentsResource: |
302 | 316 |
|
303 | 317 | return AsyncAgentsResource(self) |
304 | 318 |
|
| 319 | + @cached_property |
| 320 | + def indexing_jobs(self) -> AsyncIndexingJobsResource: |
| 321 | + from .resources.indexing_jobs import AsyncIndexingJobsResource |
| 322 | + |
| 323 | + return AsyncIndexingJobsResource(self) |
| 324 | + |
| 325 | + @cached_property |
| 326 | + def knowledge_bases(self) -> AsyncKnowledgeBasesResource: |
| 327 | + from .resources.knowledge_bases import AsyncKnowledgeBasesResource |
| 328 | + |
| 329 | + return AsyncKnowledgeBasesResource(self) |
| 330 | + |
305 | 331 | @cached_property |
306 | 332 | def chat(self) -> AsyncChatResource: |
307 | 333 | from .resources.chat import AsyncChatResource |
@@ -445,6 +471,18 @@ def agents(self) -> agents.AgentsResourceWithRawResponse: |
445 | 471 |
|
446 | 472 | return AgentsResourceWithRawResponse(self._client.agents) |
447 | 473 |
|
| 474 | + @cached_property |
| 475 | + def indexing_jobs(self) -> indexing_jobs.IndexingJobsResourceWithRawResponse: |
| 476 | + from .resources.indexing_jobs import IndexingJobsResourceWithRawResponse |
| 477 | + |
| 478 | + return IndexingJobsResourceWithRawResponse(self._client.indexing_jobs) |
| 479 | + |
| 480 | + @cached_property |
| 481 | + def knowledge_bases(self) -> knowledge_bases.KnowledgeBasesResourceWithRawResponse: |
| 482 | + from .resources.knowledge_bases import KnowledgeBasesResourceWithRawResponse |
| 483 | + |
| 484 | + return KnowledgeBasesResourceWithRawResponse(self._client.knowledge_bases) |
| 485 | + |
448 | 486 | @cached_property |
449 | 487 | def chat(self) -> chat.ChatResourceWithRawResponse: |
450 | 488 | from .resources.chat import ChatResourceWithRawResponse |
@@ -476,6 +514,18 @@ def agents(self) -> agents.AsyncAgentsResourceWithRawResponse: |
476 | 514 |
|
477 | 515 | return AsyncAgentsResourceWithRawResponse(self._client.agents) |
478 | 516 |
|
| 517 | + @cached_property |
| 518 | + def indexing_jobs(self) -> indexing_jobs.AsyncIndexingJobsResourceWithRawResponse: |
| 519 | + from .resources.indexing_jobs import AsyncIndexingJobsResourceWithRawResponse |
| 520 | + |
| 521 | + return AsyncIndexingJobsResourceWithRawResponse(self._client.indexing_jobs) |
| 522 | + |
| 523 | + @cached_property |
| 524 | + def knowledge_bases(self) -> knowledge_bases.AsyncKnowledgeBasesResourceWithRawResponse: |
| 525 | + from .resources.knowledge_bases import AsyncKnowledgeBasesResourceWithRawResponse |
| 526 | + |
| 527 | + return AsyncKnowledgeBasesResourceWithRawResponse(self._client.knowledge_bases) |
| 528 | + |
479 | 529 | @cached_property |
480 | 530 | def chat(self) -> chat.AsyncChatResourceWithRawResponse: |
481 | 531 | from .resources.chat import AsyncChatResourceWithRawResponse |
@@ -507,6 +557,18 @@ def agents(self) -> agents.AgentsResourceWithStreamingResponse: |
507 | 557 |
|
508 | 558 | return AgentsResourceWithStreamingResponse(self._client.agents) |
509 | 559 |
|
| 560 | + @cached_property |
| 561 | + def indexing_jobs(self) -> indexing_jobs.IndexingJobsResourceWithStreamingResponse: |
| 562 | + from .resources.indexing_jobs import IndexingJobsResourceWithStreamingResponse |
| 563 | + |
| 564 | + return IndexingJobsResourceWithStreamingResponse(self._client.indexing_jobs) |
| 565 | + |
| 566 | + @cached_property |
| 567 | + def knowledge_bases(self) -> knowledge_bases.KnowledgeBasesResourceWithStreamingResponse: |
| 568 | + from .resources.knowledge_bases import KnowledgeBasesResourceWithStreamingResponse |
| 569 | + |
| 570 | + return KnowledgeBasesResourceWithStreamingResponse(self._client.knowledge_bases) |
| 571 | + |
510 | 572 | @cached_property |
511 | 573 | def chat(self) -> chat.ChatResourceWithStreamingResponse: |
512 | 574 | from .resources.chat import ChatResourceWithStreamingResponse |
@@ -538,6 +600,18 @@ def agents(self) -> agents.AsyncAgentsResourceWithStreamingResponse: |
538 | 600 |
|
539 | 601 | return AsyncAgentsResourceWithStreamingResponse(self._client.agents) |
540 | 602 |
|
| 603 | + @cached_property |
| 604 | + def indexing_jobs(self) -> indexing_jobs.AsyncIndexingJobsResourceWithStreamingResponse: |
| 605 | + from .resources.indexing_jobs import AsyncIndexingJobsResourceWithStreamingResponse |
| 606 | + |
| 607 | + return AsyncIndexingJobsResourceWithStreamingResponse(self._client.indexing_jobs) |
| 608 | + |
| 609 | + @cached_property |
| 610 | + def knowledge_bases(self) -> knowledge_bases.AsyncKnowledgeBasesResourceWithStreamingResponse: |
| 611 | + from .resources.knowledge_bases import AsyncKnowledgeBasesResourceWithStreamingResponse |
| 612 | + |
| 613 | + return AsyncKnowledgeBasesResourceWithStreamingResponse(self._client.knowledge_bases) |
| 614 | + |
541 | 615 | @cached_property |
542 | 616 | def chat(self) -> chat.AsyncChatResourceWithStreamingResponse: |
543 | 617 | from .resources.chat import AsyncChatResourceWithStreamingResponse |
|
0 commit comments