mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 20:14:13 +00:00
Precommit fixes
This commit is contained in:
parent
ae975f96ce
commit
e3f7cd318a
3 changed files with 52 additions and 2 deletions
33
docs/_static/llama-stack-spec.html
vendored
33
docs/_static/llama-stack-spec.html
vendored
|
@ -6133,6 +6133,31 @@
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
|
"items": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"title": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"default": {
|
"default": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
|
@ -7075,6 +7100,14 @@
|
||||||
"default": true,
|
"default": true,
|
||||||
"description": "Whether this parameter is required for tool invocation"
|
"description": "Whether this parameter is required for tool invocation"
|
||||||
},
|
},
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "Type of the elements when parameter_type is array"
|
||||||
|
},
|
||||||
|
"title": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "(Optional) Title of the parameter"
|
||||||
|
},
|
||||||
"default": {
|
"default": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
|
|
17
docs/_static/llama-stack-spec.yaml
vendored
17
docs/_static/llama-stack-spec.yaml
vendored
|
@ -4348,6 +4348,16 @@ components:
|
||||||
required:
|
required:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
items:
|
||||||
|
oneOf:
|
||||||
|
- type: 'null'
|
||||||
|
- type: boolean
|
||||||
|
- type: number
|
||||||
|
- type: string
|
||||||
|
- type: array
|
||||||
|
- type: object
|
||||||
|
title:
|
||||||
|
type: string
|
||||||
default:
|
default:
|
||||||
oneOf:
|
oneOf:
|
||||||
- type: 'null'
|
- type: 'null'
|
||||||
|
@ -5119,6 +5129,13 @@ components:
|
||||||
default: true
|
default: true
|
||||||
description: >-
|
description: >-
|
||||||
Whether this parameter is required for tool invocation
|
Whether this parameter is required for tool invocation
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
description: >-
|
||||||
|
Type of the elements when parameter_type is array
|
||||||
|
title:
|
||||||
|
type: string
|
||||||
|
description: (Optional) Title of the parameter
|
||||||
default:
|
default:
|
||||||
oneOf:
|
oneOf:
|
||||||
- type: 'null'
|
- type: 'null'
|
||||||
|
|
|
@ -292,7 +292,7 @@ async def test__initialize_tools(agents_impl, sample_agent_config):
|
||||||
assert story_title is not None
|
assert story_title is not None
|
||||||
assert story_title.param_type == "string"
|
assert story_title.param_type == "string"
|
||||||
assert story_title.description == "Title of the story"
|
assert story_title.description == "Title of the story"
|
||||||
assert story_title.required == True
|
assert story_title.required
|
||||||
assert story_title.items is None
|
assert story_title.items is None
|
||||||
assert story_title.title == "Story Title"
|
assert story_title.title == "Story Title"
|
||||||
assert story_title.default is None
|
assert story_title.default is None
|
||||||
|
@ -302,7 +302,7 @@ async def test__initialize_tools(agents_impl, sample_agent_config):
|
||||||
assert input_words is not None
|
assert input_words is not None
|
||||||
assert input_words.param_type == "array"
|
assert input_words.param_type == "array"
|
||||||
assert input_words.description == "Input words"
|
assert input_words.description == "Input words"
|
||||||
assert input_words.required == False
|
assert not input_words.required
|
||||||
assert input_words.items is not None
|
assert input_words.items is not None
|
||||||
assert len(input_words.items) == 1
|
assert len(input_words.items) == 1
|
||||||
assert input_words.items.get("type") == "string"
|
assert input_words.items.get("type") == "string"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue