Skip to content

AssistantAgent: recognize generated answer from ChatMessageContent #9730

Answered by crickman
MaxiPigna asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MaxiPigna
Comment options

Answer selected by MaxiPigna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested agents
2 participants