fix: update input schema reference in MessageTools for accurate tool … (#5804)

* fix: update input schema reference in MessageTools for accurate tool response handling

* refactor: remove unused CustomEditorContainer styles from MiniAppSettings

---------

Co-authored-by: kanweiwei <kanweiwei@nutstore.net>
This commit is contained in:
Camol 2025-05-09 21:54:13 +08:00 committed by GitHub
parent a6a8324cdb
commit 3697b31c7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 15 deletions

View File

@ -30,7 +30,7 @@ const MessageTools: FC<Props> = ({ blocks }) => {
try { try {
return JSON.stringify( return JSON.stringify(
{ {
params: toolResponse?.tool?.inputSchema, params: toolResponse?.arguments,
response: toolResponse?.response response: toolResponse?.response
}, },
null, null,

View File

@ -230,17 +230,4 @@ const BorderedContainer = styled.div`
background-color: var(--color-bg-1); background-color: var(--color-bg-1);
` `
// 新增自定义编辑器容器样式
const CustomEditorContainer = styled.div`
margin: 8px 0;
padding: 8px;
border: 1px solid var(--color-border);
border-radius: 8px;
background-color: var(--color-bg-1);
.ant-input {
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
}
`
export default MiniAppSettings export default MiniAppSettings