mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-03 09:21:45 +00:00
openapi in readthedocs
This commit is contained in:
parent
dbd4b9ecce
commit
3a40a2b483
3 changed files with 41 additions and 41 deletions
|
@ -443,7 +443,7 @@ class Generator:
|
||||||
"PostTraining",
|
"PostTraining",
|
||||||
"BatchInference",
|
"BatchInference",
|
||||||
]:
|
]:
|
||||||
op.defining_class.__name__ = f"(Coming Soon) {op.defining_class.__name__}"
|
op.defining_class.__name__ = f"{op.defining_class.__name__} (Coming Soon)"
|
||||||
print(op.defining_class.__name__)
|
print(op.defining_class.__name__)
|
||||||
|
|
||||||
doc_string = parse_type(op.func_ref)
|
doc_string = parse_type(op.func_ref)
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
"info": {
|
"info": {
|
||||||
"title": "Llama Stack Specification",
|
"title": "Llama Stack Specification",
|
||||||
"version": "alpha",
|
"version": "alpha",
|
||||||
"description": "This is the specification of the Llama Stack that provides\n a set of endpoints and their corresponding interfaces that are tailored to\n best leverage Llama Models. Generated at 2024-11-22 17:22:31.150049"
|
"description": "This is the specification of the Llama Stack that provides\n a set of endpoints and their corresponding interfaces that are tailored to\n best leverage Llama Models. Generated at 2024-11-22 17:23:55.034164"
|
||||||
},
|
},
|
||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
"(Coming Soon) BatchInference"
|
"BatchInference (Coming Soon)"
|
||||||
],
|
],
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
"(Coming Soon) BatchInference"
|
"BatchInference (Coming Soon)"
|
||||||
],
|
],
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
"(Coming Soon) PostTraining"
|
"PostTraining (Coming Soon)"
|
||||||
],
|
],
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
|
@ -1079,7 +1079,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
"(Coming Soon) PostTraining"
|
"PostTraining (Coming Soon)"
|
||||||
],
|
],
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
|
@ -1117,7 +1117,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
"(Coming Soon) PostTraining"
|
"PostTraining (Coming Soon)"
|
||||||
],
|
],
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
|
@ -1155,7 +1155,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
"(Coming Soon) PostTraining"
|
"PostTraining (Coming Soon)"
|
||||||
],
|
],
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
|
@ -1193,7 +1193,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
"(Coming Soon) PostTraining"
|
"PostTraining (Coming Soon)"
|
||||||
],
|
],
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
|
@ -1713,7 +1713,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
"(Coming Soon) PostTraining"
|
"PostTraining (Coming Soon)"
|
||||||
],
|
],
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
|
@ -2161,7 +2161,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
"(Coming Soon) PostTraining"
|
"PostTraining (Coming Soon)"
|
||||||
],
|
],
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
|
@ -2201,7 +2201,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
"(Coming Soon) SyntheticDataGeneration"
|
"SyntheticDataGeneration (Coming Soon)"
|
||||||
],
|
],
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
|
@ -7927,15 +7927,6 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
{
|
|
||||||
"name": "(Coming Soon) BatchInference"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "(Coming Soon) PostTraining"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "(Coming Soon) SyntheticDataGeneration"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "AgentCandidate",
|
"name": "AgentCandidate",
|
||||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentCandidate\" />"
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentCandidate\" />"
|
||||||
|
@ -8011,6 +8002,9 @@
|
||||||
"name": "BatchCompletionResponse",
|
"name": "BatchCompletionResponse",
|
||||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchCompletionResponse\" />"
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchCompletionResponse\" />"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "BatchInference (Coming Soon)"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "BenchmarkEvalTaskConfig",
|
"name": "BenchmarkEvalTaskConfig",
|
||||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/BenchmarkEvalTaskConfig\" />"
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/BenchmarkEvalTaskConfig\" />"
|
||||||
|
@ -8262,6 +8256,9 @@
|
||||||
"name": "PhotogenToolDefinition",
|
"name": "PhotogenToolDefinition",
|
||||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/PhotogenToolDefinition\" />"
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/PhotogenToolDefinition\" />"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "PostTraining (Coming Soon)"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "PostTrainingJob",
|
"name": "PostTrainingJob",
|
||||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJob\" />"
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJob\" />"
|
||||||
|
@ -8450,6 +8447,9 @@
|
||||||
"name": "SyntheticDataGenerateRequest",
|
"name": "SyntheticDataGenerateRequest",
|
||||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerateRequest\" />"
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerateRequest\" />"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "SyntheticDataGeneration (Coming Soon)"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "SyntheticDataGenerationResponse",
|
"name": "SyntheticDataGenerationResponse",
|
||||||
"description": "Response from the synthetic data generation. Batch of (prompt, response, score) tuples that pass the threshold.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerationResponse\" />"
|
"description": "Response from the synthetic data generation. Batch of (prompt, response, score) tuples that pass the threshold.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerationResponse\" />"
|
||||||
|
@ -8558,10 +8558,8 @@
|
||||||
{
|
{
|
||||||
"name": "Operations",
|
"name": "Operations",
|
||||||
"tags": [
|
"tags": [
|
||||||
"(Coming Soon) BatchInference",
|
|
||||||
"(Coming Soon) PostTraining",
|
|
||||||
"(Coming Soon) SyntheticDataGeneration",
|
|
||||||
"Agents",
|
"Agents",
|
||||||
|
"BatchInference (Coming Soon)",
|
||||||
"DatasetIO",
|
"DatasetIO",
|
||||||
"Datasets",
|
"Datasets",
|
||||||
"Eval",
|
"Eval",
|
||||||
|
@ -8571,10 +8569,12 @@
|
||||||
"Memory",
|
"Memory",
|
||||||
"MemoryBanks",
|
"MemoryBanks",
|
||||||
"Models",
|
"Models",
|
||||||
|
"PostTraining (Coming Soon)",
|
||||||
"Safety",
|
"Safety",
|
||||||
"Scoring",
|
"Scoring",
|
||||||
"ScoringFunctions",
|
"ScoringFunctions",
|
||||||
"Shields",
|
"Shields",
|
||||||
|
"SyntheticDataGeneration (Coming Soon)",
|
||||||
"Telemetry"
|
"Telemetry"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -3400,7 +3400,7 @@ components:
|
||||||
info:
|
info:
|
||||||
description: "This is the specification of the Llama Stack that provides\n \
|
description: "This is the specification of the Llama Stack that provides\n \
|
||||||
\ a set of endpoints and their corresponding interfaces that are tailored\
|
\ a set of endpoints and their corresponding interfaces that are tailored\
|
||||||
\ to\n best leverage Llama Models. Generated at 2024-11-22 17:22:31.150049"
|
\ to\n best leverage Llama Models. Generated at 2024-11-22 17:23:55.034164"
|
||||||
title: Llama Stack Specification
|
title: Llama Stack Specification
|
||||||
version: alpha
|
version: alpha
|
||||||
jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema
|
jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema
|
||||||
|
@ -3658,7 +3658,7 @@ paths:
|
||||||
$ref: '#/components/schemas/BatchChatCompletionResponse'
|
$ref: '#/components/schemas/BatchChatCompletionResponse'
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
- (Coming Soon) BatchInference
|
- BatchInference (Coming Soon)
|
||||||
/alpha/batch-inference/completion:
|
/alpha/batch-inference/completion:
|
||||||
post:
|
post:
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -3683,7 +3683,7 @@ paths:
|
||||||
$ref: '#/components/schemas/BatchCompletionResponse'
|
$ref: '#/components/schemas/BatchCompletionResponse'
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
- (Coming Soon) BatchInference
|
- BatchInference (Coming Soon)
|
||||||
/alpha/datasetio/get-rows-paginated:
|
/alpha/datasetio/get-rows-paginated:
|
||||||
get:
|
get:
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -4337,7 +4337,7 @@ paths:
|
||||||
$ref: '#/components/schemas/PostTrainingJobArtifactsResponse'
|
$ref: '#/components/schemas/PostTrainingJobArtifactsResponse'
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
- (Coming Soon) PostTraining
|
- PostTraining (Coming Soon)
|
||||||
/alpha/post-training/job/cancel:
|
/alpha/post-training/job/cancel:
|
||||||
post:
|
post:
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -4358,7 +4358,7 @@ paths:
|
||||||
'200':
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
- (Coming Soon) PostTraining
|
- PostTraining (Coming Soon)
|
||||||
/alpha/post-training/job/logs:
|
/alpha/post-training/job/logs:
|
||||||
get:
|
get:
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -4382,7 +4382,7 @@ paths:
|
||||||
$ref: '#/components/schemas/PostTrainingJobLogStream'
|
$ref: '#/components/schemas/PostTrainingJobLogStream'
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
- (Coming Soon) PostTraining
|
- PostTraining (Coming Soon)
|
||||||
/alpha/post-training/job/status:
|
/alpha/post-training/job/status:
|
||||||
get:
|
get:
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -4406,7 +4406,7 @@ paths:
|
||||||
$ref: '#/components/schemas/PostTrainingJobStatusResponse'
|
$ref: '#/components/schemas/PostTrainingJobStatusResponse'
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
- (Coming Soon) PostTraining
|
- PostTraining (Coming Soon)
|
||||||
/alpha/post-training/jobs:
|
/alpha/post-training/jobs:
|
||||||
get:
|
get:
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -4425,7 +4425,7 @@ paths:
|
||||||
$ref: '#/components/schemas/PostTrainingJob'
|
$ref: '#/components/schemas/PostTrainingJob'
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
- (Coming Soon) PostTraining
|
- PostTraining (Coming Soon)
|
||||||
/alpha/post-training/preference-optimize:
|
/alpha/post-training/preference-optimize:
|
||||||
post:
|
post:
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -4450,7 +4450,7 @@ paths:
|
||||||
$ref: '#/components/schemas/PostTrainingJob'
|
$ref: '#/components/schemas/PostTrainingJob'
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
- (Coming Soon) PostTraining
|
- PostTraining (Coming Soon)
|
||||||
/alpha/post-training/supervised-fine-tune:
|
/alpha/post-training/supervised-fine-tune:
|
||||||
post:
|
post:
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -4475,7 +4475,7 @@ paths:
|
||||||
$ref: '#/components/schemas/PostTrainingJob'
|
$ref: '#/components/schemas/PostTrainingJob'
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
- (Coming Soon) PostTraining
|
- PostTraining (Coming Soon)
|
||||||
/alpha/providers/list:
|
/alpha/providers/list:
|
||||||
get:
|
get:
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -4755,7 +4755,7 @@ paths:
|
||||||
$ref: '#/components/schemas/SyntheticDataGenerationResponse'
|
$ref: '#/components/schemas/SyntheticDataGenerationResponse'
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
- (Coming Soon) SyntheticDataGeneration
|
- SyntheticDataGeneration (Coming Soon)
|
||||||
/alpha/telemetry/get-trace:
|
/alpha/telemetry/get-trace:
|
||||||
get:
|
get:
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -4806,9 +4806,6 @@ security:
|
||||||
servers:
|
servers:
|
||||||
- url: http://any-hosted-llama-stack.com
|
- url: http://any-hosted-llama-stack.com
|
||||||
tags:
|
tags:
|
||||||
- name: (Coming Soon) BatchInference
|
|
||||||
- name: (Coming Soon) PostTraining
|
|
||||||
- name: (Coming Soon) SyntheticDataGeneration
|
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/AgentCandidate" />
|
- description: <SchemaDefinition schemaRef="#/components/schemas/AgentCandidate" />
|
||||||
name: AgentCandidate
|
name: AgentCandidate
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/AgentConfig" />
|
- description: <SchemaDefinition schemaRef="#/components/schemas/AgentConfig" />
|
||||||
|
@ -4866,6 +4863,7 @@ tags:
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/BatchCompletionResponse"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/BatchCompletionResponse"
|
||||||
/>
|
/>
|
||||||
name: BatchCompletionResponse
|
name: BatchCompletionResponse
|
||||||
|
- name: BatchInference (Coming Soon)
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/BenchmarkEvalTaskConfig"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/BenchmarkEvalTaskConfig"
|
||||||
/>
|
/>
|
||||||
name: BenchmarkEvalTaskConfig
|
name: BenchmarkEvalTaskConfig
|
||||||
|
@ -5046,6 +5044,7 @@ tags:
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/PhotogenToolDefinition"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/PhotogenToolDefinition"
|
||||||
/>
|
/>
|
||||||
name: PhotogenToolDefinition
|
name: PhotogenToolDefinition
|
||||||
|
- name: PostTraining (Coming Soon)
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/PostTrainingJob"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/PostTrainingJob"
|
||||||
/>
|
/>
|
||||||
name: PostTrainingJob
|
name: PostTrainingJob
|
||||||
|
@ -5180,6 +5179,7 @@ tags:
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/SyntheticDataGenerateRequest"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/SyntheticDataGenerateRequest"
|
||||||
/>
|
/>
|
||||||
name: SyntheticDataGenerateRequest
|
name: SyntheticDataGenerateRequest
|
||||||
|
- name: SyntheticDataGeneration (Coming Soon)
|
||||||
- description: 'Response from the synthetic data generation. Batch of (prompt, response,
|
- description: 'Response from the synthetic data generation. Batch of (prompt, response,
|
||||||
score) tuples that pass the threshold.
|
score) tuples that pass the threshold.
|
||||||
|
|
||||||
|
@ -5261,10 +5261,8 @@ tags:
|
||||||
x-tagGroups:
|
x-tagGroups:
|
||||||
- name: Operations
|
- name: Operations
|
||||||
tags:
|
tags:
|
||||||
- (Coming Soon) BatchInference
|
|
||||||
- (Coming Soon) PostTraining
|
|
||||||
- (Coming Soon) SyntheticDataGeneration
|
|
||||||
- Agents
|
- Agents
|
||||||
|
- BatchInference (Coming Soon)
|
||||||
- DatasetIO
|
- DatasetIO
|
||||||
- Datasets
|
- Datasets
|
||||||
- Eval
|
- Eval
|
||||||
|
@ -5274,10 +5272,12 @@ x-tagGroups:
|
||||||
- Memory
|
- Memory
|
||||||
- MemoryBanks
|
- MemoryBanks
|
||||||
- Models
|
- Models
|
||||||
|
- PostTraining (Coming Soon)
|
||||||
- Safety
|
- Safety
|
||||||
- Scoring
|
- Scoring
|
||||||
- ScoringFunctions
|
- ScoringFunctions
|
||||||
- Shields
|
- Shields
|
||||||
|
- SyntheticDataGeneration (Coming Soon)
|
||||||
- Telemetry
|
- Telemetry
|
||||||
- name: Types
|
- name: Types
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue