diff --git a/docs/_static/llama-stack-spec.html b/docs/_static/llama-stack-spec.html index 9ddb070d7..120d97dae 100644 --- a/docs/_static/llama-stack-spec.html +++ b/docs/_static/llama-stack-spec.html @@ -6133,6 +6133,31 @@ "type": "boolean", "default": true }, + "items": { + "oneOf": [ + { + "type": "null" + }, + { + "type": "boolean" + }, + { + "type": "number" + }, + { + "type": "string" + }, + { + "type": "array" + }, + { + "type": "object" + } + ] + }, + "title": { + "type": "string" + }, "default": { "oneOf": [ { @@ -7075,6 +7100,14 @@ "default": true, "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": { "oneOf": [ { diff --git a/docs/_static/llama-stack-spec.yaml b/docs/_static/llama-stack-spec.yaml index 94dc5c0f9..ad24d1c3d 100644 --- a/docs/_static/llama-stack-spec.yaml +++ b/docs/_static/llama-stack-spec.yaml @@ -4348,6 +4348,16 @@ components: required: type: boolean default: true + items: + oneOf: + - type: 'null' + - type: boolean + - type: number + - type: string + - type: array + - type: object + title: + type: string default: oneOf: - type: 'null' @@ -5119,6 +5129,13 @@ components: default: true 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: oneOf: - type: 'null' diff --git a/tests/unit/providers/agent/test_meta_reference_agent.py b/tests/unit/providers/agent/test_meta_reference_agent.py index 003c65f94..07e5aa79d 100644 --- a/tests/unit/providers/agent/test_meta_reference_agent.py +++ b/tests/unit/providers/agent/test_meta_reference_agent.py @@ -292,7 +292,7 @@ async def test__initialize_tools(agents_impl, sample_agent_config): assert story_title is not None assert story_title.param_type == "string" 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.title == "Story Title" 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.param_type == "array" assert input_words.description == "Input words" - assert input_words.required == False + assert not input_words.required assert input_words.items is not None assert len(input_words.items) == 1 assert input_words.items.get("type") == "string"