How to have multiple agents? #412
Unanswered
NickRimmer
asked this question in
Q&A
Replies: 2 comments
-
|
Will it understand by injected type of agent like in this example? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
That sample is demonstrates how to do this using a different endpoint for each Azure Bot and injected AgentApplication types. Note that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I tried to find the answer but without success. I hope someone can answer me (;
In examples and documentation this is simple way to add agent into application -
builder.AddAgent<...>()and then endpoint withapp.MapPost("/api/messages", async (HttpRequest request, HttpResponse response, IAgentHttpAdapter adapter, IAgent agentApp, IServiceProvider sp, CancellationToken cancellationToken)I would like to expose multiple endpoints for multiple Azure Bots, and when my agent answers, I want to know which Azure Bot asking by endpoint. My idea to have multiple AI models behind with own instructions in one hosted application.
Is it possible to have multiple endpoints like
/api/agent1/messagesand/api/agent2/messagesand then answer to messages based on which endpoint used for sending messages?Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions