Skip to content

Commit 79d077e

Browse files
authored
- Remove legacy lens and draft SDK APIs (ENG-2664) (#80)
- Regenerate contracts, clients, and examples from roe-main
1 parent 6099dd9 commit 79d077e

41 files changed

Lines changed: 103 additions & 6233 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎SDK_EXAMPLES.md‎

Lines changed: 0 additions & 181 deletions
Original file line numberDiff line numberDiff line change
@@ -677,187 +677,6 @@ client = RoeClient()
677677
result = client.discovery.list_agent_engine_types()
678678
```
679679

680-
### Knowledge Base
681-
682-
#### `knowledge_base_list`
683-
684-
List all KBs for the org, or start a new draft.
685-
686-
```python
687-
from roe import RoeClient
688-
689-
client = RoeClient()
690-
691-
result = client.knowledge_base.list(
692-
page=1, # optional
693-
page_size=10, # optional
694-
)
695-
```
696-
697-
#### `knowledge_base_create`
698-
699-
List all KBs for the org, or start a new draft.
700-
701-
```python
702-
from roe import RoeClient
703-
704-
client = RoeClient()
705-
706-
result = client.knowledge_base.create(
707-
company="company",
708-
brief="brief",
709-
)
710-
```
711-
712-
#### `knowledge_base_catalog_retrieve`
713-
714-
Names-only typology+tactic catalog.
715-
716-
```python
717-
from roe import RoeClient
718-
719-
client = RoeClient()
720-
721-
result = client.knowledge_base.catalog()
722-
```
723-
724-
#### `knowledge_base_import_lens_create`
725-
726-
Import a finalized Atlas lens into roe-main by its atlas_lens_id.
727-
728-
```python
729-
from roe import RoeClient
730-
731-
client = RoeClient()
732-
733-
result = client.knowledge_base.import_lens("atlas_lens_id")
734-
```
735-
736-
#### `knowledge_base_lens_retrieve`
737-
738-
Fetch a lens directly from Atlas by its atlas_lens_id and return the
739-
names-only projection.
740-
741-
```python
742-
from roe import RoeClient
743-
744-
client = RoeClient()
745-
746-
result = client.knowledge_base.lens_by_atlas_id("atlas_lens_id")
747-
```
748-
749-
#### `knowledge_base_destroy`
750-
751-
Get or delete a single KB.
752-
753-
```python
754-
from roe import RoeClient
755-
756-
client = RoeClient()
757-
758-
client.knowledge_base.delete("knowledge_base_id")
759-
```
760-
761-
#### `knowledge_base_retrieve`
762-
763-
Get or delete a single KB.
764-
765-
```python
766-
from roe import RoeClient
767-
768-
client = RoeClient()
769-
770-
result = client.knowledge_base.retrieve("knowledge_base_id")
771-
```
772-
773-
#### `knowledge_base_draft_retrieve`
774-
775-
Poll the atlas draft.
776-
777-
```python
778-
from roe import RoeClient
779-
780-
client = RoeClient()
781-
782-
result = client.knowledge_base.poll_draft("knowledge_base_id")
783-
```
784-
785-
#### `knowledge_base_finalize_create`
786-
787-
Commit the agreed selection into a lens and mark the KB active.
788-
789-
```python
790-
from roe import RoeClient
791-
792-
client = RoeClient()
793-
794-
result = client.knowledge_base.finalize("knowledge_base_id")
795-
```
796-
797-
#### `knowledge_base_regenerate_create`
798-
799-
Kick off another async generation round with feedback.
800-
801-
```python
802-
from roe import RoeClient
803-
804-
client = RoeClient()
805-
806-
result = client.knowledge_base.regenerate("knowledge_base_id")
807-
```
808-
809-
#### `knowledge_base_resolve_create`
810-
811-
Approve or decline a pending regeneration proposal.
812-
813-
```python
814-
from roe import RoeClient
815-
816-
client = RoeClient()
817-
818-
result = client.knowledge_base.resolve("knowledge_base_id")
819-
```
820-
821-
#### `knowledge_base_selection_partial_update`
822-
823-
Persist hand-edits to the working selection (typology + tactic opt-in/out).
824-
825-
```python
826-
from roe import RoeClient
827-
828-
client = RoeClient()
829-
830-
result = client.knowledge_base.patch_selection(
831-
"knowledge_base_id",
832-
refs=[],
833-
)
834-
```
835-
836-
#### `knowledge_base_sync_create`
837-
838-
Standalone best-effort lens sync (display mode).
839-
840-
```python
841-
from roe import RoeClient
842-
843-
client = RoeClient()
844-
845-
result = client.knowledge_base.sync("knowledge_base_id")
846-
```
847-
848-
#### `knowledge_base_unlink_destroy`
849-
850-
Unlink a knowledge base: remove the local KnowledgeBase row only, leaving
851-
the Atlas lens (and any in-progress draft) untouched.
852-
853-
```python
854-
from roe import RoeClient
855-
856-
client = RoeClient()
857-
858-
client.knowledge_base.unlink("knowledge_base_id")
859-
```
860-
861680
### Policies
862681

863682
#### `policies_list`

0 commit comments

Comments
 (0)