-
I have implemented an Assistant Agent with the Code Interpreter feature enabled. When I invoke the Agent, it provides multiple responses from a single invocation, which include both the intermediate reasoning steps and the generated answers for the user. I wish to filter out all intermediate steps and deliver only the generated answers to the user, because intermediate steps contain technical details like the python code executed by the agent. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thank you for this question @MaxiPigna. Content/reasoning produced by the code-interpreter includes a metadata flag so that it may be identified. This key is published as the constant: We initially considered marking these using the Other customers have provided input they they very much want this generated code / internal reasoning to be exposed; although, I understand this will vary across different contexts. |
Beta Was this translation helpful? Give feedback.
Thank you for this question @MaxiPigna.
Content/reasoning produced by the code-interpreter includes a metadata flag so that it may be identified. This key is published as the constant:
OpenAIAssistantAgent.CodeInterpreterMetadataKey
:https://github.com/microsoft/semantic-kernel/blob/main/dotnet/src/InternalUtilities/samples/AgentUtilities/BaseAgentsTest.cs#L59
We initially considered marking these using the
Tool
role, but this creates issues due to specific semantics related to the usage this role for chat-completion.Other customers have provided input they they very much want this generated code / internal reasoning to be exposed; although, I understand this will vary across different c…