You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that Foundry expects for example the following property in its query towards appinsights: "gen_ai.choice" == "assistant", but i don't see that back in the data i get in appinsights. I'm running an ASP.NET backend with .NET 8 if that might be relevant.
I do see gen_ai.operation.name and gen_ai.agent.id and the agent name though, so for sure tracing is working, but it seems incomplete. Anything I'm doing wrong or can try?
I'm using the following code:
var options = new AssistantCreationOptions
{
Name = AssistantName,
Instructions = prompt?.Instructions ?? DefaultInstructions
};
var assistant =
await _client.CreateAssistantAsync(_chatModelDeployment, options);
var agent = new OpenAIAssistantAgent(assistant, _client, plugins: _kernelPluginCollection);
var agentThread = await GetOrCreateAgentThreadAsync(input.DepartmentId, input.ScenarioId, input.UserId);
var message = new ChatMessageContent(AuthorRole.User, input.Message);
var result = "";
await foreach (ChatMessageContent response in agent.InvokeAsync(message, agentThread))
{
// Display response.
result += response;
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I noticed that Foundry expects for example the following property in its query towards appinsights: "gen_ai.choice" == "assistant", but i don't see that back in the data i get in appinsights. I'm running an ASP.NET backend with .NET 8 if that might be relevant.
I do see gen_ai.operation.name and gen_ai.agent.id and the agent name though, so for sure tracing is working, but it seems incomplete. Anything I'm doing wrong or can try?
I'm using the following code:
Beta Was this translation helpful? Give feedback.
All reactions