Precommit fixes

This commit is contained in:
Tami Takamiya 2025-09-16 14:32:10 -04:00
parent ae975f96ce
commit e3f7cd318a
No known key found for this signature in database
GPG key ID: B23C22B8CB1E70C7
3 changed files with 52 additions and 2 deletions

View file

@ -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": [
{ {

View file

@ -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'

View file

@ -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"