Skip to content

java工具schema生成工具生成的default错误 #352

@loveTsong

Description

@loveTsong

问题摘要 / Issue Summary

java工具schema生成工具生成的default错误

版本信息 / Version Information

其他 (请在下方说明) / Other (please specify below)

浏览器 / Browser

No response

操作系统 / Operating System

None

发生了什么?/ What happened?

java工具schema生成工具生成的default错误

  1. 用户注解未配置default时,生成默认值:default: ""
  2. 默认的数据不合理,即使是object类型也是default: ""

期望的行为 / Expected Behavior

  1. 用户注解未配置default时,不应该生成该字段
  2. default中值的类型应和实际类型匹配

重现步骤 / Steps to Reproduce

  1. 编写一个工具
  2. 生成工具schema的tools.json

相关日志 / Relevant Logs

额外信息 / Additional Context

No response

确认事项 / Confirmations

  • 我已经搜索了现有的issues,确认这不是重复问题
    I have searched existing issues and confirmed this is not a duplicate

  • 我已经阅读了项目文档和 FAQ
    I have read the project documentation and FAQ

  • 我提供的信息准确完整
    The information I provided is accurate and complete

  • 我愿意协助测试问题修复 (可选)
    I'm willing to help test the bug fix (optional)

Metadata

Metadata

Labels

in: felIssues in FEL(FIT Expression for LLM) modulestype: bugA general bug

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions