mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 15:23:51 +00:00
a
This commit is contained in:
parent
2788761f6e
commit
20c527eded
4 changed files with 43 additions and 11 deletions
|
@ -238,9 +238,9 @@ Before finalizing documentation, verify:
|
||||||
[x] 17. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/shields/shields.py` - Safety shields
|
[x] 17. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/shields/shields.py` - Safety shields
|
||||||
[x] 18. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/batch_inference/batch_inference.py` - Batch inference operations
|
[x] 18. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/batch_inference/batch_inference.py` - Batch inference operations
|
||||||
[x] 19. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/synthetic_data_generation/synthetic_data_generation.py` - Data generation
|
[x] 19. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/synthetic_data_generation/synthetic_data_generation.py` - Data generation
|
||||||
20. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/telemetry/telemetry.py` - Telemetry and monitoring
|
[x] 20. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/providers/providers.py` - Provider management
|
||||||
21. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/providers/providers.py` - Provider management
|
21. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/inspect/inspect.py` - System inspection
|
||||||
22. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/inspect/inspect.py` - System inspection
|
22. `/Users/saip/Documents/GitHub/llama-stack/llama_stack/apis/telemetry/telemetry.py` - Telemetry and monitoring
|
||||||
|
|
||||||
**Step 1: Existing Documentation Assessment**
|
**Step 1: Existing Documentation Assessment**
|
||||||
- **Priority**: Review all @json_schema_type classes and @webmethod functions for docstring completeness
|
- **Priority**: Review all @json_schema_type classes and @webmethod functions for docstring completeness
|
||||||
|
|
24
docs/_static/llama-stack-spec.html
vendored
24
docs/_static/llama-stack-spec.html
vendored
|
@ -11694,13 +11694,16 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"api": {
|
"api": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"description": "The API name this provider implements"
|
||||||
},
|
},
|
||||||
"provider_id": {
|
"provider_id": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"description": "Unique identifier for the provider"
|
||||||
},
|
},
|
||||||
"provider_type": {
|
"provider_type": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"description": "The type of provider implementation"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -11725,7 +11728,8 @@
|
||||||
"type": "object"
|
"type": "object"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"description": "Configuration parameters for the provider"
|
||||||
},
|
},
|
||||||
"health": {
|
"health": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -11750,7 +11754,8 @@
|
||||||
"type": "object"
|
"type": "object"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"description": "Current health status of the provider"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
|
@ -11761,7 +11766,8 @@
|
||||||
"config",
|
"config",
|
||||||
"health"
|
"health"
|
||||||
],
|
],
|
||||||
"title": "ProviderInfo"
|
"title": "ProviderInfo",
|
||||||
|
"description": "Information about a registered provider including its configuration and health status."
|
||||||
},
|
},
|
||||||
"InvokeToolRequest": {
|
"InvokeToolRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -12200,14 +12206,16 @@
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/components/schemas/ProviderInfo"
|
"$ref": "#/components/schemas/ProviderInfo"
|
||||||
}
|
},
|
||||||
|
"description": "List of provider information objects"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": [
|
"required": [
|
||||||
"data"
|
"data"
|
||||||
],
|
],
|
||||||
"title": "ListProvidersResponse"
|
"title": "ListProvidersResponse",
|
||||||
|
"description": "Response containing a list of all available providers."
|
||||||
},
|
},
|
||||||
"RouteInfo": {
|
"RouteInfo": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|
12
docs/_static/llama-stack-spec.yaml
vendored
12
docs/_static/llama-stack-spec.yaml
vendored
|
@ -8441,10 +8441,13 @@ components:
|
||||||
properties:
|
properties:
|
||||||
api:
|
api:
|
||||||
type: string
|
type: string
|
||||||
|
description: The API name this provider implements
|
||||||
provider_id:
|
provider_id:
|
||||||
type: string
|
type: string
|
||||||
|
description: Unique identifier for the provider
|
||||||
provider_type:
|
provider_type:
|
||||||
type: string
|
type: string
|
||||||
|
description: The type of provider implementation
|
||||||
config:
|
config:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
@ -8455,6 +8458,8 @@ components:
|
||||||
- type: string
|
- type: string
|
||||||
- type: array
|
- type: array
|
||||||
- type: object
|
- type: object
|
||||||
|
description: >-
|
||||||
|
Configuration parameters for the provider
|
||||||
health:
|
health:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
@ -8465,6 +8470,7 @@ components:
|
||||||
- type: string
|
- type: string
|
||||||
- type: array
|
- type: array
|
||||||
- type: object
|
- type: object
|
||||||
|
description: Current health status of the provider
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
required:
|
required:
|
||||||
- api
|
- api
|
||||||
|
@ -8473,6 +8479,9 @@ components:
|
||||||
- config
|
- config
|
||||||
- health
|
- health
|
||||||
title: ProviderInfo
|
title: ProviderInfo
|
||||||
|
description: >-
|
||||||
|
Information about a registered provider including its configuration and health
|
||||||
|
status.
|
||||||
InvokeToolRequest:
|
InvokeToolRequest:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -8787,10 +8796,13 @@ components:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/ProviderInfo'
|
$ref: '#/components/schemas/ProviderInfo'
|
||||||
|
description: List of provider information objects
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
required:
|
required:
|
||||||
- data
|
- data
|
||||||
title: ListProvidersResponse
|
title: ListProvidersResponse
|
||||||
|
description: >-
|
||||||
|
Response containing a list of all available providers.
|
||||||
RouteInfo:
|
RouteInfo:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|
|
@ -14,6 +14,14 @@ from llama_stack.schema_utils import json_schema_type, webmethod
|
||||||
|
|
||||||
@json_schema_type
|
@json_schema_type
|
||||||
class ProviderInfo(BaseModel):
|
class ProviderInfo(BaseModel):
|
||||||
|
"""Information about a registered provider including its configuration and health status.
|
||||||
|
|
||||||
|
:param api: The API name this provider implements
|
||||||
|
:param provider_id: Unique identifier for the provider
|
||||||
|
:param provider_type: The type of provider implementation
|
||||||
|
:param config: Configuration parameters for the provider
|
||||||
|
:param health: Current health status of the provider
|
||||||
|
"""
|
||||||
api: str
|
api: str
|
||||||
provider_id: str
|
provider_id: str
|
||||||
provider_type: str
|
provider_type: str
|
||||||
|
@ -22,6 +30,10 @@ class ProviderInfo(BaseModel):
|
||||||
|
|
||||||
|
|
||||||
class ListProvidersResponse(BaseModel):
|
class ListProvidersResponse(BaseModel):
|
||||||
|
"""Response containing a list of all available providers.
|
||||||
|
|
||||||
|
:param data: List of provider information objects
|
||||||
|
"""
|
||||||
data: list[ProviderInfo]
|
data: list[ProviderInfo]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue