fix: 修复智能体聊天图片能力判断

This commit is contained in:
2026-08-31 15:10:40 +08:00
parent 0cedf85729
commit f28e3919ac
5 changed files with 74 additions and 17 deletions

View File

@@ -49,7 +49,9 @@ export function buildInteractionConfigPayload(
};
}
export function resolveInteractionDisplay(agent?: AgentInfo) {
export function resolveInteractionDisplay(
agent?: Pick<AgentInfo, 'interactionConfigJson' | 'name'>,
) {
const config = buildInteractionConfigPayload(agent?.interactionConfigJson);
const agentName = String(agent?.name || '').trim() || '智能体';
return {