Skip to content

Commit 0982329

Browse files
committed
feature #1105 [AI Bundle] Display tool JSON schema in profiler Platform Calls (camilleislasse)
This PR was merged into the main branch. Discussion ---------- [AI Bundle] Display tool JSON schema in profiler Platform Calls | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | no | License | MIT The profiler only showed tool names in Platform Calls > Options > tools. This made it difficult to debug dynamically enriched tools since the actual JSON schema sent to the API was not visible. This change: - Displays tool JSON schema using dump() for interactive exploration - Adds a "Copy" button to copy the schema to clipboard <img width="777" height="628" alt="Capture d’écran 2025-12-10 à 20 44 30" src="https://github.com/user-attachments/assets/29a54de1-682a-47b9-8c52-44c614ef0ffe" /> Commits ------- 47938d5 [AiBundle] Display tool JSON schema in profiler Platform Calls
2 parents ce061b8 + 47938d5 commit 0982329

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ai-bundle/templates/data_collector.html.twig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,13 @@
143143
<li>{{ key }}:
144144
<ul>
145145
{% for tool in value %}
146-
<li>{{ tool.name }}</li>
146+
<li>
147+
<strong>{{ tool.name }}</strong>
148+
{% if tool.parameters %}
149+
<button class="btn btn-sm hidden" data-clipboard-text="{{ tool.parameters|json_encode|e('html_attr') }}">Copy JSON Schema</button>
150+
{{ dump(tool.parameters) }}
151+
{% endif %}
152+
</li>
147153
{% endfor %}
148154
</ul>
149155
</li>

0 commit comments

Comments
 (0)