Skip to content

Commit 71aa821

Browse files
authored
Updated the docs (#1117)
* Updated the docs * Fxi * fix
1 parent 6f71ecc commit 71aa821

3 files changed

Lines changed: 125 additions & 30 deletions

File tree

specification/resources/gen-ai/definitions.yml

Lines changed: 119 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,6 @@ apiAgentDeploymentRelease:
350350
example: "2023-01-01T00:00:00Z"
351351
format: date-time
352352
type: string
353-
url:
354-
description: The url to access the agent workspace deployment
355-
example: example string
356-
type: string
357353
uuid:
358354
description: Unique release id
359355
example: 123e4567-e89b-12d3-a456-426614174000
@@ -1194,12 +1190,14 @@ apiCrawlingOption:
11941190
- PATH: Crawl the base URL and linked pages within the URL path.
11951191
- DOMAIN: Crawl the base URL and linked pages within the same domain.
11961192
- SUBDOMAINS: Crawl the base URL and linked pages for any subdomain.
1193+
- SITEMAP: Crawl URLs discovered in the sitemap.
11971194
enum:
11981195
- UNKNOWN
11991196
- SCOPED
12001197
- PATH
12011198
- DOMAIN
12021199
- SUBDOMAINS
1200+
- SITEMAP
12031201
example: UNKNOWN
12041202
type: string
12051203
apiCreateAgentAPIKeyInputPublic:
@@ -1218,6 +1216,12 @@ apiCreateAgentAPIKeyOutput:
12181216
api_key_info:
12191217
$ref: '#/apiAgentAPIKeyInfo'
12201218
type: object
1219+
apiCreateAgentDeploymentFileUploadPresignedURLInputPublic:
1220+
description: Request for pre-signed URL's to upload file for Agent Workspace
1221+
properties:
1222+
file:
1223+
$ref: '#/apiPresignedUrlFile'
1224+
type: object
12211225
apiCreateAgentDeploymentFileUploadPresignedURLOutput:
12221226
description: Response with pre-signed url to upload file
12231227
properties:
@@ -1228,6 +1232,19 @@ apiCreateAgentDeploymentFileUploadPresignedURLOutput:
12281232
upload:
12291233
$ref: '#/apiFilePresignedUrlResponse'
12301234
type: object
1235+
apiCreateAgentDeploymentReleaseInputPublic:
1236+
properties:
1237+
agent_deployment_code_artifact:
1238+
$ref: '#/apiAgentDeploymentCodeArtifact'
1239+
agent_deployment_name:
1240+
description: The deployment name
1241+
example: example name
1242+
type: string
1243+
agent_workspace_name:
1244+
description: The name of agent workspace
1245+
example: example name
1246+
type: string
1247+
type: object
12311248
apiCreateAgentDeploymentReleaseOutput:
12321249
description: One Agent Deployment Release
12331250
properties:
@@ -1326,12 +1343,42 @@ apiCreateAgentOutput:
13261343
agent:
13271344
$ref: '#/apiAgent'
13281345
type: object
1346+
apiCreateAgentWorkspaceDeploymentInputPublic:
1347+
properties:
1348+
agent_deployment_code_artifact:
1349+
$ref: '#/apiAgentDeploymentCodeArtifact'
1350+
agent_deployment_name:
1351+
description: The deployment name
1352+
example: example name
1353+
type: string
1354+
agent_workspace_name:
1355+
description: The name of agent workspace
1356+
example: example name
1357+
type: string
1358+
type: object
13291359
apiCreateAgentWorkspaceDeploymentOutput:
13301360
description: One Agent Workspace Deployment
13311361
properties:
13321362
agent_workspace_deployment:
13331363
$ref: '#/apiAgentWorkspaceDeployment'
13341364
type: object
1365+
apiCreateAgentWorkspaceInputPublic:
1366+
properties:
1367+
agent_deployment_code_artifact:
1368+
$ref: '#/apiAgentDeploymentCodeArtifact'
1369+
agent_deployment_name:
1370+
description: The deployment name
1371+
example: example name
1372+
type: string
1373+
agent_workspace_name:
1374+
description: The name of agent workspace
1375+
example: example name
1376+
type: string
1377+
project_id:
1378+
description: The project id
1379+
example: 123e4567-e89b-12d3-a456-426614174000
1380+
type: string
1381+
type: object
13351382
apiCreateAgentWorkspaceOutput:
13361383
properties:
13371384
agent_workspace:
@@ -1624,6 +1671,10 @@ apiCreateTracesInputPublic:
16241671
apiCreateTracesOutput:
16251672
description: Output for creating traces
16261673
properties:
1674+
session_id:
1675+
description: Session ID
1676+
example: 123e4567-e89b-12d3-a456-426614174000
1677+
type: string
16271678
trace_uuids:
16281679
description: Trace UUIDs created
16291680
example:
@@ -1701,6 +1752,20 @@ apiDeleteAgentOutput:
17011752
agent:
17021753
$ref: '#/apiAgent'
17031754
type: object
1755+
apiDeleteAgentWorkspaceDeploymentOutput:
1756+
properties:
1757+
agent_workspace_deployment_uuid:
1758+
description: The agent workspace deployment id
1759+
example: 123e4567-e89b-12d3-a456-426614174000
1760+
type: string
1761+
type: object
1762+
apiDeleteAgentWorkspaceOutput:
1763+
properties:
1764+
agent_workspace_name:
1765+
description: The agent workspace name
1766+
example: example name
1767+
type: string
1768+
type: object
17041769
apiDeleteAnthropicAPIKeyInputPublic:
17051770
properties:
17061771
api_key_uuid:
@@ -1937,6 +2002,8 @@ apiEvaluationDataset:
19372002
type: object
19382003
apiEvaluationMetric:
19392004
properties:
2005+
category:
2006+
$ref: '#/apiEvaluationMetricCategory'
19402007
description:
19412008
example: example string
19422009
type: string
@@ -1945,9 +2012,16 @@ apiEvaluationMetric:
19452012
better.
19462013
example: true
19472014
type: boolean
2015+
is_metric_goal:
2016+
example: true
2017+
type: boolean
19482018
metric_name:
19492019
example: example name
19502020
type: string
2021+
metric_rank:
2022+
example: 123
2023+
format: int64
2024+
type: integer
19512025
metric_type:
19522026
$ref: '#/apiEvaluationMetricType'
19532027
metric_uuid:
@@ -1966,6 +2040,17 @@ apiEvaluationMetric:
19662040
format: float
19672041
type: number
19682042
type: object
2043+
apiEvaluationMetricCategory:
2044+
default: METRIC_CATEGORY_UNSPECIFIED
2045+
enum:
2046+
- METRIC_CATEGORY_UNSPECIFIED
2047+
- METRIC_CATEGORY_CORRECTNESS
2048+
- METRIC_CATEGORY_USER_OUTCOMES
2049+
- METRIC_CATEGORY_SAFETY_AND_SECURITY
2050+
- METRIC_CATEGORY_CONTEXT_QUALITY
2051+
- METRIC_CATEGORY_MODEL_FIT
2052+
example: METRIC_CATEGORY_UNSPECIFIED
2053+
type: string
19692054
apiEvaluationMetricResult:
19702055
properties:
19712056
error_description:
@@ -2350,6 +2435,13 @@ apiGetAgentWorkspaceDeploymentOutput:
23502435
agent_workspace_deployment:
23512436
$ref: '#/apiAgentWorkspaceDeployment'
23522437
type: object
2438+
apiGetAgentWorkspaceDeploymentRuntimeLogsOutput:
2439+
properties:
2440+
live_url:
2441+
description: URL for live logs
2442+
example: example string
2443+
type: string
2444+
type: object
23532445
apiGetAgentWorkspaceOutput:
23542446
description: One Agent Workspace
23552447
properties:
@@ -2830,6 +2922,7 @@ apiIndexJobStatus:
28302922
- INDEX_JOB_STATUS_FAILED
28312923
- INDEX_JOB_STATUS_NO_CHANGES
28322924
- INDEX_JOB_STATUS_PENDING
2925+
- INDEX_JOB_STATUS_CANCELLED
28332926
example: INDEX_JOB_STATUS_UNKNOWN
28342927
type: string
28352928
apiIndexedDataSource:
@@ -2967,26 +3060,6 @@ apiIndexingJob:
29673060
example: 123
29683061
format: int64
29693062
type: integer
2970-
total_items_failed:
2971-
description: Total Items Failed
2972-
example: "12345"
2973-
format: uint64
2974-
type: string
2975-
total_items_indexed:
2976-
description: Total Items Indexed
2977-
example: "12345"
2978-
format: uint64
2979-
type: string
2980-
total_items_removed:
2981-
description: Total Items Removed
2982-
example: "12345"
2983-
format: uint64
2984-
type: string
2985-
total_items_skipped:
2986-
description: Total Items Skipped
2987-
example: "12345"
2988-
format: uint64
2989-
type: string
29903063
total_tokens:
29913064
description: Total Tokens Consumed By the Indexing Job
29923065
example: "12345"
@@ -3135,8 +3208,6 @@ apiKnowledgeBaseDataSource:
31353208
type: string
31363209
last_datasource_indexing_job:
31373210
$ref: '#/apiIndexedDataSource'
3138-
last_indexing_job:
3139-
$ref: '#/apiIndexingJob'
31403211
region:
31413212
description: Region code - Deprecated, moved to data_source_details
31423213
example: example string
@@ -4327,6 +4398,7 @@ apiReleaseStatus:
43274398
- RELEASE_STATUS_UNDEPLOYING: the release is currently being undeployed
43284399
- RELEASE_STATUS_UNDEPLOYMENT_FAILED: the release undeployment failed
43294400
- RELEASE_STATUS_DELETED: the release has been deleted
4401+
- RELEASE_STATUS_BUILDING: the release is building
43304402
enum:
43314403
- RELEASE_STATUS_UNKNOWN
43324404
- RELEASE_STATUS_WAITING_FOR_DEPLOYMENT
@@ -4337,6 +4409,7 @@ apiReleaseStatus:
43374409
- RELEASE_STATUS_UNDEPLOYING
43384410
- RELEASE_STATUS_UNDEPLOYMENT_FAILED
43394411
- RELEASE_STATUS_DELETED
4412+
- RELEASE_STATUS_BUILDING
43404413
example: RELEASE_STATUS_UNKNOWN
43414414
type: string
43424415
apiResourceUsage:
@@ -4884,6 +4957,26 @@ apiUpdateAgentOutput:
48844957
agent:
48854958
$ref: '#/apiAgent'
48864959
type: object
4960+
apiUpdateAgentWorkspaceDeploymentInputPublic:
4961+
properties:
4962+
agent_deployment_name:
4963+
description: The name of the deployment
4964+
example: example name
4965+
type: string
4966+
agent_workspace_name:
4967+
description: Unique agent workspace name
4968+
example: example name
4969+
type: string
4970+
log_insights_enabled:
4971+
example: true
4972+
type: boolean
4973+
type: object
4974+
apiUpdateAgentWorkspaceDeploymentOutput:
4975+
description: One Agent Workspace Deployment
4976+
properties:
4977+
agent_workspace_deployment:
4978+
$ref: '#/apiAgentWorkspaceDeployment'
4979+
type: object
48874980
apiUpdateAnthropicAPIKeyInputPublic:
48884981
description: UpdateAnthropicAPIKeyInputPublic is used to update an existing Anthropic
48894982
API key for a specific agent.

specification/resources/gen-ai/examples/curl/genai_create_knowledge_base.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ source: |-
1414
"database_id": "abf1055a-745d-4c24-a1db-1959ea819264",
1515
"datasources": [
1616
{
17-
"bucket_name": "test-public-gen-ai",
18-
"bucket_region": "tor1"
17+
"spaces_data_source": {
18+
"bucket_name": "test-public-gen-ai",
19+
"region": "tor1"
20+
}
1921
},
2022
{
2123
"web_crawler_data_source": {
2224
"base_url": "https://example.com",
2325
"crawling_option": "SCOPED",
2426
"embed_media": false,
25-
"exclude_tags":["footer", "title", "h1"]
27+
"exclude_tags": ["nav","footer","header","aside","script","style","form","iframe", "noscript"]
2628
}
2729
}
2830
],

specification/resources/gen-ai/examples/curl/genai_create_knowledge_base_data_source.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ source: |-
1010
"base_url": "https://example.com",
1111
"crawling_option": "SCOPED",
1212
"embed_media": false,
13-
"exclude_tags": ["h1", "section"]
13+
"exclude_tags": ["nav","footer","header","aside","script","style","form","iframe", "noscript"]
1414
}
1515
}'

0 commit comments

Comments
 (0)