Skip to content

Commit 5baf921

Browse files
Excavator: Upgrade API Version (#298)
1 parent 006a4dc commit 5baf921

File tree

25 files changed

+160
-23
lines changed

25 files changed

+160
-23
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,6 +1233,7 @@ Namespace | Name | Import |
12331233
**Core** | [AnyType](docs/v2/Core/models/AnyType.md) | `from foundry_sdk.v2.core.models import AnyType` |
12341234
**Core** | [ArrayFieldType](docs/v2/Core/models/ArrayFieldType.md) | `from foundry_sdk.v2.core.models import ArrayFieldType` |
12351235
**Core** | [AttachmentType](docs/v2/Core/models/AttachmentType.md) | `from foundry_sdk.v2.core.models import AttachmentType` |
1236+
**Core** | [Attribution](docs/v2/Core/models/Attribution.md) | `from foundry_sdk.v2.core.models import Attribution` |
12361237
**Core** | [BinaryType](docs/v2/Core/models/BinaryType.md) | `from foundry_sdk.v2.core.models import BinaryType` |
12371238
**Core** | [BooleanType](docs/v2/Core/models/BooleanType.md) | `from foundry_sdk.v2.core.models import BooleanType` |
12381239
**Core** | [BranchMetadata](docs/v2/Core/models/BranchMetadata.md) | `from foundry_sdk.v2.core.models import BranchMetadata` |
@@ -2218,6 +2219,7 @@ Namespace | Name | Import |
22182219
--------- | ---- | ------ |
22192220
**Core** | [AnyType](docs/v1/Core/models/AnyType.md) | `from foundry_sdk.v1.core.models import AnyType` |
22202221
**Core** | [AttachmentType](docs/v1/Core/models/AttachmentType.md) | `from foundry_sdk.v1.core.models import AttachmentType` |
2222+
**Core** | [Attribution](docs/v1/Core/models/Attribution.md) | `from foundry_sdk.v1.core.models import Attribution` |
22212223
**Core** | [BinaryType](docs/v1/Core/models/BinaryType.md) | `from foundry_sdk.v1.core.models import BinaryType` |
22222224
**Core** | [BooleanType](docs/v1/Core/models/BooleanType.md) | `from foundry_sdk.v1.core.models import BooleanType` |
22232225
**Core** | [ByteType](docs/v1/Core/models/ByteType.md) | `from foundry_sdk.v1.core.models import ByteType` |
@@ -2586,6 +2588,7 @@ Namespace | Name | Import |
25862588
**Core** | FolderNotFound | `from foundry_sdk.v2.core.errors import FolderNotFound` |
25872589
**Core** | FoundryBranchNotFound | `from foundry_sdk.v2.core.errors import FoundryBranchNotFound` |
25882590
**Core** | InvalidAndFilter | `from foundry_sdk.v2.core.errors import InvalidAndFilter` |
2591+
**Core** | InvalidAttributionHeader | `from foundry_sdk.v2.core.errors import InvalidAttributionHeader` |
25892592
**Core** | InvalidChangeDataCaptureConfiguration | `from foundry_sdk.v2.core.errors import InvalidChangeDataCaptureConfiguration` |
25902593
**Core** | InvalidFieldSchema | `from foundry_sdk.v2.core.errors import InvalidFieldSchema` |
25912594
**Core** | InvalidFilePath | `from foundry_sdk.v2.core.errors import InvalidFilePath` |

docs-snippets-npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"sls": {
2525
"dependencies": {
2626
"com.palantir.foundry.api:api-gateway": {
27-
"minVersion": "1.1324.0",
27+
"minVersion": "1.1327.0",
2828
"maxVersion": "1.x.x",
2929
"optional": false
3030
}

docs-snippets-npm/src/index.ts

Lines changed: 5 additions & 5 deletions
Large diffs are not rendered by default.

docs/v1/Core/models/Attribution.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Attribution
2+
3+
Attribution for a request
4+
5+
## Type
6+
```python
7+
str
8+
```
9+
10+
11+
[[Back to Model list]](../../../../README.md#models-v1-link) [[Back to API list]](../../../../README.md#apis-v1-link) [[Back to README]](../../../../README.md)

docs/v1/Ontologies/Query.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Name | Type | Description | Notes |
1515
**ontology_rid** | OntologyRid | The unique Resource Identifier (RID) of the Ontology that contains the Query. To look up your Ontology RID, please use the **List ontologies** endpoint or check the **Ontology Manager**. | |
1616
**query_api_name** | QueryApiName | The API name of the Query to execute. | |
1717
**parameters** | Dict[ParameterId, Optional[DataValue]] | | |
18+
**attribution** | Optional[Attribution] | The Attribution to be used when executing this request. | [optional] |
1819
**trace_parent** | Optional[TraceParent] | The W3C trace parent header included in the request. | [optional] |
1920
**trace_state** | Optional[TraceState] | The W3C trace state header included in the request. | [optional] |
2021

@@ -36,6 +37,8 @@ ontology_rid = "ri.ontology.main.ontology.c61d9ab5-2919-4127-a0a1-ac64c0ce6367"
3637
query_api_name = "getEmployeesInCity"
3738
# Dict[ParameterId, Optional[DataValue]]
3839
parameters = {"city": "New York"}
40+
# Optional[Attribution] | The Attribution to be used when executing this request.
41+
attribution = None
3942
# Optional[TraceParent] | The W3C trace parent header included in the request.
4043
trace_parent = None
4144
# Optional[TraceState] | The W3C trace state header included in the request.
@@ -47,6 +50,7 @@ try:
4750
ontology_rid,
4851
query_api_name,
4952
parameters=parameters,
53+
attribution=attribution,
5054
trace_parent=trace_parent,
5155
trace_state=trace_state,
5256
)

docs/v2/Core/models/Attribution.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Attribution
2+
3+
Attribution for a request
4+
5+
## Type
6+
```python
7+
str
8+
```
9+
10+
11+
[[Back to Model list]](../../../../README.md#models-v2-link) [[Back to API list]](../../../../README.md#apis-v2-link) [[Back to README]](../../../../README.md)

docs/v2/Functions/Query.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Name | Type | Description | Notes |
1818
------------- | ------------- | ------------- | ------------- |
1919
**query_api_name** | QueryApiName | | |
2020
**parameters** | Dict[ParameterId, Optional[DataValue]] | | |
21+
**attribution** | Optional[Attribution] | | [optional] |
2122
**preview** | Optional[PreviewMode] | Enables the use of preview functionality. | [optional] |
2223
**trace_parent** | Optional[TraceParent] | | [optional] |
2324
**trace_state** | Optional[TraceState] | | [optional] |
@@ -39,6 +40,8 @@ client = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname="example.pa
3940
query_api_name = None
4041
# Dict[ParameterId, Optional[DataValue]]
4142
parameters = None
43+
# Optional[Attribution]
44+
attribution = None
4245
# Optional[PreviewMode] | Enables the use of preview functionality.
4346
preview = None
4447
# Optional[TraceParent]
@@ -53,6 +56,7 @@ try:
5356
api_response = client.functions.Query.execute(
5457
query_api_name,
5558
parameters=parameters,
59+
attribution=attribution,
5660
preview=preview,
5761
trace_parent=trace_parent,
5862
trace_state=trace_state,

docs/v2/LanguageModels/AnthropicModel.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes |
1414
**anthropic_model_model_id** | LanguageModelApiName | | |
1515
**max_tokens** | int | The maximum number of tokens to generate before stopping. | |
1616
**messages** | List[AnthropicMessage] | Input messages to the model. This can include a single user-role message or multiple messages with alternating user and assistant roles. | |
17+
**attribution** | Optional[Attribution] | | [optional] |
1718
**preview** | Optional[PreviewMode] | Enables the use of preview functionality. | [optional] |
1819
**stop_sequences** | Optional[List[str]] | Custom text sequences that will cause the model to stop generating. | [optional] |
1920
**system** | Optional[List[AnthropicSystemMessage]] | A system prompt is a way of providing context and instructions to Claude, such as specifying a particular goal or role. As of now, sending multiple system prompts is not supported. | [optional] |
@@ -42,6 +43,8 @@ anthropic_model_model_id = None
4243
max_tokens = None
4344
# List[AnthropicMessage] | Input messages to the model. This can include a single user-role message or multiple messages with alternating user and assistant roles.
4445
messages = [{"role": "USER"}]
46+
# Optional[Attribution]
47+
attribution = None
4548
# Optional[PreviewMode] | Enables the use of preview functionality.
4649
preview = None
4750
# Optional[List[str]] | Custom text sequences that will cause the model to stop generating.
@@ -67,6 +70,7 @@ try:
6770
anthropic_model_model_id,
6871
max_tokens=max_tokens,
6972
messages=messages,
73+
attribution=attribution,
7074
preview=preview,
7175
stop_sequences=stop_sequences,
7276
system=system,

docs/v2/LanguageModels/OpenAiModel.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Name | Type | Description | Notes |
1313
------------- | ------------- | ------------- | ------------- |
1414
**open_ai_model_model_id** | LanguageModelApiName | | |
1515
**input** | OpenAiEmbeddingInput | Input text to embed, encoded as an array of strings. Each input must not exceed the max input tokens for the model (8192 tokens for all embedding models). | |
16+
**attribution** | Optional[Attribution] | | [optional] |
1617
**dimensions** | Optional[int] | The number of dimensions the resulting output embeddings should have. Only supported in text-embedding-3 and later models. | [optional] |
1718
**encoding_format** | Optional[OpenAiEncodingFormat] | The format to return the embeddings in. Can be either float or base64. | [optional] |
1819
**preview** | Optional[PreviewMode] | Enables the use of preview functionality. | [optional] |
@@ -33,6 +34,8 @@ client = FoundryClient(auth=foundry_sdk.UserTokenAuth(...), hostname="example.pa
3334
open_ai_model_model_id = None
3435
# OpenAiEmbeddingInput | Input text to embed, encoded as an array of strings. Each input must not exceed the max input tokens for the model (8192 tokens for all embedding models).
3536
input = None
37+
# Optional[Attribution]
38+
attribution = None
3639
# Optional[int] | The number of dimensions the resulting output embeddings should have. Only supported in text-embedding-3 and later models.
3740
dimensions = None
3841
# Optional[OpenAiEncodingFormat] | The format to return the embeddings in. Can be either float or base64.
@@ -45,6 +48,7 @@ try:
4548
api_response = client.language_models.OpenAiModel.embeddings(
4649
open_ai_model_model_id,
4750
input=input,
51+
attribution=attribution,
4852
dimensions=dimensions,
4953
encoding_format=encoding_format,
5054
preview=preview,

docs/v2/Ontologies/Query.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Name | Type | Description | Notes |
1717
**ontology** | OntologyIdentifier | | |
1818
**query_api_name** | QueryApiName | The API name of the Query to execute. | |
1919
**parameters** | Dict[ParameterId, Optional[DataValue]] | | |
20+
**attribution** | Optional[Attribution] | The Attribution to be used when executing this request. | [optional] |
2021
**sdk_package_rid** | Optional[SdkPackageRid] | The package rid of the generated SDK. | [optional] |
2122
**sdk_version** | Optional[SdkVersion] | The version of the generated SDK. | [optional] |
2223
**trace_parent** | Optional[TraceParent] | The W3C trace parent header included in the request. | [optional] |
@@ -41,6 +42,8 @@ ontology = "palantir"
4142
query_api_name = "getEmployeesInCity"
4243
# Dict[ParameterId, Optional[DataValue]]
4344
parameters = {"city": "New York"}
45+
# Optional[Attribution] | The Attribution to be used when executing this request.
46+
attribution = None
4447
# Optional[SdkPackageRid] | The package rid of the generated SDK.
4548
sdk_package_rid = None
4649
# Optional[SdkVersion] | The version of the generated SDK.
@@ -58,6 +61,7 @@ try:
5861
ontology,
5962
query_api_name,
6063
parameters=parameters,
64+
attribution=attribution,
6165
sdk_package_rid=sdk_package_rid,
6266
sdk_version=sdk_version,
6367
trace_parent=trace_parent,

0 commit comments

Comments
 (0)