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 e29a930390
commit 963f04f7d8
3 changed files with 2 additions and 15 deletions

View File

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

View File

@@ -230,17 +230,4 @@ const BorderedContainer = styled.div`
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

View File

@@ -140,7 +140,7 @@ const formatCitationsFromBlock = (block: CitationMessageBlock | undefined): Cita
case WebSearchSource.ANTHROPIC:
formattedCitations =
(block.response.results as Array<WebSearchResultBlock>)?.map((result, index) => {
const {url} = result
const { url } = result
let hostname: string | undefined
try {
hostname = new URL(url).hostname