Skip to content

Commit c8403f9

Browse files
committed
fix: format output parameter display in index.vue for better readability
1 parent 9be33f6 commit c8403f9

File tree

2 files changed

+2
-2
lines changed
  • apps/application/flow
  • ui/src/components/markdown/tool-calls-render/content/simple-tool-calls

2 files changed

+2
-2
lines changed

apps/application/flow/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ async def _yield_mcp_response(chat_model, message_list, mcp_servers, mcp_output_
587587
tool_info.get('icon', ''),
588588
tool_info['name'],
589589
tool_info['input'],
590-
tool_result
590+
tool_result + '\n\n'
591591
)
592592
chunk[0].content = content
593593
else:

ui/src/components/markdown/tool-calls-render/content/simple-tool-calls/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<p class="mt-8 mb-8">{{ $t('common.param.inputParam') }}:</p>
44
<span class="color-secondary">{{ content.content.input }}</span>
55
<p class="mt-8 mb-8">{{ $t('common.param.outputParam') }}:</p>
6-
<span class="color-secondary">{{ content.content.output }}</span>
6+
<span class="color-secondary"><pre>{{ content.content.output }}</pre></span>
77
</div>
88
</template>
99
<script setup lang="ts">

0 commit comments

Comments
 (0)