| | |
| | | <Typography variant="body2" color="text.secondary"> |
| | | {tool.description || "暂无描述"} |
| | | </Typography> |
| | | {!!tool.toolPurpose && ( |
| | | <Typography variant="caption" color="text.secondary" display="block" mt={0.5}> |
| | | 用途: {tool.toolPurpose} |
| | | </Typography> |
| | | )} |
| | | </Box> |
| | | <Stack direction="row" spacing={1} alignItems="center" flexWrap="wrap" useFlexGap> |
| | | {!!tool.toolGroup && ( |
| | | <Typography variant="caption" color="text.secondary"> |
| | | {tool.toolGroup} |
| | | </Typography> |
| | | )} |
| | | <Typography variant="caption" color="text.secondary"> |
| | | {schemaInfo.fields.length} 个参数 |
| | | </Typography> |
| | |
| | | </Stack> |
| | | </AccordionSummary> |
| | | <AccordionDetails> |
| | | <Card variant="outlined" sx={{ borderRadius: 3 }}> |
| | | <Card variant="outlined" sx={{ borderRadius: 3 }}> |
| | | <CardContent> |
| | | {!!tool.queryBoundary && ( |
| | | <Alert severity="info" sx={{ mb: 2 }}> |
| | | 查询边界: {tool.queryBoundary} |
| | | </Alert> |
| | | )} |
| | | {!!tool.exampleQuestions?.length && ( |
| | | <Alert severity="success" sx={{ mb: 2 }}> |
| | | <Typography variant="body2" fontWeight={700} mb={0.5}> |
| | | 示例提问 |
| | | </Typography> |
| | | {tool.exampleQuestions.map((question) => ( |
| | | <Typography key={question} variant="body2"> |
| | | {`- ${question}`} |
| | | </Typography> |
| | | ))} |
| | | </Alert> |
| | | )} |
| | | {!!schemaInfo.error && ( |
| | | <Alert severity="warning" sx={{ mb: 2 }}> |
| | | {schemaInfo.error} |