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
"template": "from foundry_sdk import FoundryClient\nimport foundry_sdk\nfrom pprint import pprint\n\nclient = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname=\"example.palantirfoundry.com\")\n\n\ntry:\n api_response = client.ontologies.Ontology.list()\n print(\"The list response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling Ontology.list: %s\\n\" % e)"
989
989
}
990
990
],
991
+
"v2.loadOntologyMetadata": [
992
+
{
993
+
"template": "from foundry_sdk import FoundryClient\nimport foundry_sdk\nfrom pprint import pprint\n\nclient = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname=\"example.palantirfoundry.com\")\n\n# OntologyIdentifier | The API name of the ontology. To find the API name, use the **List ontologies** endpoint or check the **Ontology Manager**.\nontology = \"palantir\"\n# List[ActionTypeApiName]\naction_types = None\n# List[InterfaceTypeApiName]\ninterface_types = None\n# List[LinkTypeApiName]\nlink_types = None\n# List[ObjectTypeApiName]\nobject_types = None\n# List[VersionedQueryTypeApiName]\nquery_types = None\n\n\ntry:\n api_response = client.ontologies.Ontology.load_metadata(\n ontology,\n action_types=action_types,\n interface_types=interface_types,\n link_types=link_types,\n object_types=object_types,\n query_types=query_types,\n )\n print(\"The load_metadata response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling Ontology.load_metadata: %s\\n\" % e)"
994
+
}
995
+
],
991
996
"v2.aggregateObjectsForInterface": [
992
997
{
993
998
"template": "from foundry_sdk import FoundryClient\nimport foundry_sdk\nfrom pprint import pprint\n\nclient = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname=\"example.palantirfoundry.com\")\n\n# OntologyIdentifier | The API name of the ontology. To find the API name, use the **List ontologies** endpoint or check the **Ontology Manager**.\nontology = \"palantir\"\n# InterfaceTypeApiName | The API name of the interface type. To find the API name, use the **List interface types** endpoint or check the **Ontology Manager**.\ninterface_type = \"Employee\"\n# List[AggregationV2]\naggregation = [\n {\"type\": \"min\", \"field\": \"properties.tenure\", \"name\": \"min_tenure\"},\n {\"type\": \"avg\", \"field\": \"properties.tenure\", \"name\": \"avg_tenure\"},\n]\n# List[AggregationGroupByV2]\ngroup_by = [\n {\n \"field\": \"startDate\",\n \"type\": \"range\",\n \"ranges\": [{\"startValue\": \"2020-01-01\", \"endValue\": \"2020-06-01\"}],\n },\n {\"field\": \"city\", \"type\": \"exact\"},\n]\n# Optional[AggregationAccuracyRequest]\naccuracy = None\n# Optional[PreviewMode] | A boolean flag that, when set to true, enables the use of beta features in preview mode.\npreview = None\n# Optional[SearchJsonQueryV2]\nwhere = {\"type\": \"eq\", \"field\": \"name\", \"value\": \"john\"}\n\n\ntry:\n api_response = client.ontologies.OntologyInterface.aggregate(\n ontology,\n interface_type,\n aggregation=aggregation,\n group_by=group_by,\n accuracy=accuracy,\n preview=preview,\n where=where,\n )\n print(\"The aggregate response:\\n\")\n pprint(api_response)\nexcept foundry_sdk.PalantirRPCException as e:\n print(\"HTTP error when calling OntologyInterface.aggregate: %s\\n\" % e)"
**object_contexts** | List[ObjectContext] | Yes | Relevant object context for the user's message that was included in the prompt to the Agent. |
10
+
**function_retrieved_contexts** | List[FunctionRetrievedContext] | Yes | Context retrieved from running a function that was included as additional context in the prompt to the Agent. |
10
11
11
12
12
13
[[Back to Model list]](../../../../README.md#models-v2-link)[[Back to API list]](../../../../README.md#apis-v2-link)[[Back to README]](../../../../README.md)
Gets a specific ontology with the given Ontology RID.
@@ -150,3 +151,73 @@ See [README](../../../README.md#authorization)
150
151
151
152
[[Back to top]](#)[[Back to API list]](../../../README.md#apis-v2-link)[[Back to Model list]](../../../README.md#models-v2-link)[[Back to README]](../../../README.md)
152
153
154
+
# **load_metadata**
155
+
Load Ontology metadata for the requested object, link, action, query, and interface types.
**ontology** | OntologyIdentifier | The API name of the ontology. To find the API name, use the **List ontologies** endpoint or check the **Ontology Manager**. | |
[[Back to top]](#)[[Back to API list]](../../../README.md#apis-v2-link)[[Back to Model list]](../../../README.md#models-v2-link)[[Back to README]](../../../README.md)
[[Back to Model list]](../../../../README.md#models-v2-link)[[Back to API list]](../../../../README.md#apis-v2-link)[[Back to README]](../../../../README.md)
0 commit comments