You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""`Retrieve one or more agents by external ID. <https://api-docs.cognite.com/20230101-beta/tag/Agents/operation/get_agents_by_ids_ai_agents_byids_post/>`_
183
+
"""`Retrieve one or more agents by external ID <https://api-docs.cognite.com/20230101-beta/tag/Agents/operation/get_agents_by_ids_ai_agents_byids_post/>`_.
184
184
185
185
Args:
186
186
external_ids (str | SequenceNotStr[str]): The external id of the agent(s) to retrieve.
Copy file name to clipboardExpand all lines: cognite/client/_api/ai/tools/documents.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ async def summarize(
18
18
external_id: str|None=None,
19
19
instance_id: NodeId|None=None,
20
20
) ->Summary:
21
-
"""`Summarize a document using a Large Language Model. <https://api-docs.cognite.com/20230101/tag/Document-AI/operation/document_questioning_ai_tools_documents_ask_post>`_
21
+
"""`Summarize a document using a Large Language Model <https://api-docs.cognite.com/20230101/tag/Document-AI/operation/document_questioning_ai_tools_documents_ask_post>`_.
22
22
23
23
Note:
24
24
Currently only supports summarizing a single document at a time, but
@@ -78,7 +78,7 @@ async def ask_question(
78
78
additional_context: str|None=None,
79
79
ignore_unknown_ids: bool=False,
80
80
) ->Answer:
81
-
"""`Ask a question about one or more documents using a Large Language Model. <https://api-docs.cognite.com/20230101/tag/Document-AI/operation/documents_summary_api_v1_projects__projectName__ai_tools_documents_summarize_post>`_
81
+
"""`Ask a question about one or more documents using a Large Language Model <https://api-docs.cognite.com/20230101/tag/Document-AI/operation/documents_summary_api_v1_projects__projectName__ai_tools_documents_summarize_post>`_.
annotations (Annotation | AnnotationWrite | Sequence[Annotation] | Sequence[AnnotationWrite]): annotation(s) to suggest. They must have status set to "suggested".
item (Annotation | AnnotationWrite | AnnotationUpdate | Sequence[Annotation | AnnotationWrite | AnnotationUpdate]): Annotation or list of annotations to update (or patch or list of patches to apply)
"""`Count of assets matching the specified filters. <https://api-docs.cognite.com/20230101/tag/Assets/operation/aggregateAssets>`_
280
+
"""`Count of assets matching the specified filters <https://api-docs.cognite.com/20230101/tag/Assets/operation/aggregateAssets>`_.
281
281
282
282
Args:
283
283
property (AssetPropertyLike | None): If specified, get an approximate number of asset with a specific property (property is not null) and matching the filters.
"""Upsert assets, i.e., update if it exists, and create if it does not exist.
808
+
807
809
Note this is a convenience method that handles the upserting for you by first calling update on all items,
808
810
and if any of them fail because they do not exist, it will create them instead.
809
811
@@ -851,7 +853,8 @@ async def search(
851
853
filter: AssetFilter|dict[str, Any] |None=None,
852
854
limit: int=DEFAULT_LIMIT_READ,
853
855
) ->AssetList:
854
-
"""`Search for assets <https://api-docs.cognite.com/20230101/tag/Assets/operation/searchAssets>`_
856
+
"""`Search for assets <https://api-docs.cognite.com/20230101/tag/Assets/operation/searchAssets>`_.
857
+
855
858
Primarily meant for human-centric use-cases and data exploration, not for programs, since matching and ordering may change over time. Use the `list` function if stable or exact matches are required.
0 commit comments