Open
Description
Edit GettingStarted.Orchestration.Step06_DifferentAgentTypes.HandoffOrchestrationAsync and use await this.CreateOpenAIAssistantAgentAsync
or await this.CreateAzureAIAgentAsync
to create the statusAgent
GettingStarted.Orchestration.Step06_DifferentAgentTypes.HandoffOrchestrationAsync
Source: Step06_DifferentAgentTypes.cs line 208
Duration: 38.5 sec
Message:
System.AggregateException : One or more errors occurred. (One or more exceptions occurred while processing the message. (One or more exceptions occurred while processing the message. (One or more exceptions occurred while processing the message. (One or more exceptions occurred while processing the message. (One or more exceptions occurred while processing the message. (HTTP 400 (invalid_request_error: )
Parameter: messages.[15].role
An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_DgWv9uouSenykDO2ZFzfJ2wQ))))))
---- System.AggregateException : One or more exceptions occurred while processing the message. (One or more exceptions occurred while processing the message. (One or more exceptions occurred while processing the message. (One or more exceptions occurred while processing the message. (One or more exceptions occurred while processing the message. (HTTP 400 (invalid_request_error: )
Parameter: messages.[15].role
An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_DgWv9uouSenykDO2ZFzfJ2wQ)))))
-------- System.AggregateException : One or more exceptions occurred while processing the message. (One or more exceptions occurred while processing the message. (One or more exceptions occurred while processing the message. (One or more exceptions occurred while processing the message. (HTTP 400 (invalid_request_error: )
Parameter: messages.[15].role
An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_DgWv9uouSenykDO2ZFzfJ2wQ))))
------------ System.AggregateException : One or more exceptions occurred while processing the message. (One or more exceptions occurred while processing the message. (One or more exceptions occurred while processing the message. (HTTP 400 (invalid_request_error: )
Parameter: messages.[15].role
An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_DgWv9uouSenykDO2ZFzfJ2wQ)))
---------------- System.AggregateException : One or more exceptions occurred while processing the message. (One or more exceptions occurred while processing the message. (HTTP 400 (invalid_request_error: )
Parameter: messages.[15].role
An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_DgWv9uouSenykDO2ZFzfJ2wQ))
-------------------- System.AggregateException : One or more exceptions occurred while processing the message. (HTTP 400 (invalid_request_error: )
Parameter: messages.[15].role
An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_DgWv9uouSenykDO2ZFzfJ2wQ)
------------------------ Microsoft.SemanticKernel.HttpOperationException : HTTP 400 (invalid_request_error: )
Parameter: messages.[15].role
An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_DgWv9uouSenykDO2ZFzfJ2wQ
---------------------------- System.ClientModel.ClientResultException : HTTP 400 (invalid_request_error: )
Parameter: messages.[15].role
An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_DgWv9uouSenykDO2ZFzfJ2wQ
Stack Trace:
Task.WaitAllCore(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)
Task.WaitAll(Task[] tasks, TimeSpan timeout)
OrchestrationResult`1.GetValueAsync(Nullable`1 timeout, CancellationToken cancellationToken) line 77
Step06_DifferentAgentTypes.HandoffOrchestrationAsync() line 279
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
InProcessRuntime.PublishMessageServicerAsync(MessageEnvelope envelope, CancellationToken deliveryToken) line 393
<<ForPublish>g__BoundServicer|0>d.MoveNext() line 67
--- End of stack trace from previous location ---
ResultSink`1.GetResult(Int16 token) line 26
<<PublishMessageAsync>b__0>d.MoveNext() line 115
--- End of stack trace from previous location ---
RuntimeExtensions.PublishMessageAsync(IAgentRuntime runtime, Object message, AgentType agentType, CancellationToken cancellationToken) line 21
HandoffOrchestration`2.StartAsync(IAgentRuntime runtime, TopicId topic, IEnumerable`1 input, Nullable`1 entryAgent) line 56
RequestActor.HandleAsync(TInput item, MessageContext messageContext) line 63
<<-ctor>b__1>d.MoveNext() line 72
--- End of stack trace from previous location ---
HandlerInvoker.InvokeAsync(Object obj, MessageContext messageContext) line 113
BaseAgent.OnMessageAsync(Object message, MessageContext messageContext) line 83
InProcessRuntime.PublishMessageServicerAsync(MessageEnvelope envelope, CancellationToken deliveryToken) line 382
----- Inner Stack Trace -----
InProcessRuntime.PublishMessageServicerAsync(MessageEnvelope envelope, CancellationToken deliveryToken) line 393
<<ForPublish>g__BoundServicer|0>d.MoveNext() line 67
--- End of stack trace from previous location ---
ResultSink`1.GetResult(Int16 token) line 26
<<PublishMessageAsync>b__0>d.MoveNext() line 115
--- End of stack trace from previous location ---
OrchestrationActor.PublishMessageAsync(Object message, AgentType agentType, CancellationToken cancellationToken) line 42
HandoffActor.HandleAsync(Request item, MessageContext messageContext) line 129
<<-ctor>b__1>d.MoveNext() line 72
--- End of stack trace from previous location ---
HandlerInvoker.InvokeAsync(Object obj, MessageContext messageContext) line 113
BaseAgent.OnMessageAsync(Object message, MessageContext messageContext) line 83
InProcessRuntime.PublishMessageServicerAsync(MessageEnvelope envelope, CancellationToken deliveryToken) line 382
----- Inner Stack Trace -----
InProcessRuntime.PublishMessageServicerAsync(MessageEnvelope envelope, CancellationToken deliveryToken) line 393
<<ForPublish>g__BoundServicer|0>d.MoveNext() line 67
--- End of stack trace from previous location ---
ResultSink`1.GetResult(Int16 token) line 26
<<PublishMessageAsync>b__0>d.MoveNext() line 115
--- End of stack trace from previous location ---
OrchestrationActor.PublishMessageAsync(Object message, AgentType agentType, CancellationToken cancellationToken) line 42
HandoffActor.HandleAsync(Request item, MessageContext messageContext) line 129
<<-ctor>b__1>d.MoveNext() line 72
--- End of stack trace from previous location ---
HandlerInvoker.InvokeAsync(Object obj, MessageContext messageContext) line 113
BaseAgent.OnMessageAsync(Object message, MessageContext messageContext) line 83
InProcessRuntime.PublishMessageServicerAsync(MessageEnvelope envelope, CancellationToken deliveryToken) line 382
----- Inner Stack Trace -----
InProcessRuntime.PublishMessageServicerAsync(MessageEnvelope envelope, CancellationToken deliveryToken) line 393
<<ForPublish>g__BoundServicer|0>d.MoveNext() line 67
--- End of stack trace from previous location ---
ResultSink`1.GetResult(Int16 token) line 26
<<PublishMessageAsync>b__0>d.MoveNext() line 115
--- End of stack trace from previous location ---
OrchestrationActor.PublishMessageAsync(Object message, AgentType agentType, CancellationToken cancellationToken) line 42
HandoffActor.HandleAsync(Request item, MessageContext messageContext) line 129
<<-ctor>b__1>d.MoveNext() line 72
--- End of stack trace from previous location ---
HandlerInvoker.InvokeAsync(Object obj, MessageContext messageContext) line 113
BaseAgent.OnMessageAsync(Object message, MessageContext messageContext) line 83
InProcessRuntime.PublishMessageServicerAsync(MessageEnvelope envelope, CancellationToken deliveryToken) line 382
----- Inner Stack Trace -----
InProcessRuntime.PublishMessageServicerAsync(MessageEnvelope envelope, CancellationToken deliveryToken) line 393
<<ForPublish>g__BoundServicer|0>d.MoveNext() line 67
--- End of stack trace from previous location ---
ResultSink`1.GetResult(Int16 token) line 26
<<PublishMessageAsync>b__0>d.MoveNext() line 115
--- End of stack trace from previous location ---
OrchestrationActor.PublishMessageAsync(Object message, AgentType agentType, CancellationToken cancellationToken) line 42
HandoffActor.HandleAsync(Request item, MessageContext messageContext) line 129
<<-ctor>b__1>d.MoveNext() line 72
--- End of stack trace from previous location ---
HandlerInvoker.InvokeAsync(Object obj, MessageContext messageContext) line 113
BaseAgent.OnMessageAsync(Object message, MessageContext messageContext) line 83
InProcessRuntime.PublishMessageServicerAsync(MessageEnvelope envelope, CancellationToken deliveryToken) line 382
----- Inner Stack Trace -----
ClientCore.RunRequestAsync[T](Func`1 request) line 244
ClientCore.GetChatMessageContentsAsync(String targetModel, ChatHistory chatHistory, PromptExecutionSettings executionSettings, Kernel kernel, CancellationToken cancellationToken) line 171
ChatCompletionAgent.InternalInvokeAsync(String agentName, ChatHistory history, Func`2 onNewToolMessage, KernelArguments arguments, Kernel kernel, String additionalInstructions, CancellationToken cancellationToken)+MoveNext() line 358
Boolean>.GetResult()
ChatCompletionAgent.InvokeAsync(ICollection`1 messages, AgentThread thread, AgentInvokeOptions options, CancellationToken cancellationToken)+MoveNext() line 118
ChatCompletionAgent.InvokeAsync(ICollection`1 messages, AgentThread thread, AgentInvokeOptions options, CancellationToken cancellationToken)+MoveNext() line 118
Boolean>.GetResult()
AsyncEnumerable.<TryGetLast>g__Core|163_0[TSource](IAsyncEnumerable`1 source, CancellationToken cancellationToken)
AsyncEnumerable.<TryGetLast>g__Core|163_0[TSource](IAsyncEnumerable`1 source, CancellationToken cancellationToken)
AsyncEnumerable.<LastOrDefaultAsync>g__Core|159_0[TSource](IAsyncEnumerable`1 source, CancellationToken cancellationToken)
AgentActor.InvokeAsync(IList`1 input, AgentInvokeOptions options, CancellationToken cancellationToken) line 125
AgentActor.InvokeAsync(IList`1 input, CancellationToken cancellationToken) line 103
HandoffActor.HandleAsync(Request item, MessageContext messageContext) line 113
<<-ctor>b__1>d.MoveNext() line 72
--- End of stack trace from previous location ---
HandlerInvoker.InvokeAsync(Object obj, MessageContext messageContext) line 113
BaseAgent.OnMessageAsync(Object message, MessageContext messageContext) line 83
InProcessRuntime.PublishMessageServicerAsync(MessageEnvelope envelope, CancellationToken deliveryToken) line 382
----- Inner Stack Trace -----
ClientPipelineExtensions.ProcessMessageAsync(ClientPipeline pipeline, PipelineMessage message, RequestOptions options)
ChatClient.CompleteChatAsync(BinaryContent content, RequestOptions options)
ChatClient.CompleteChatAsync(IEnumerable`1 messages, ChatCompletionOptions options, CancellationToken cancellationToken)
ClientCore.RunRequestAsync[T](Func`1 request) line 240
Standard Output:
# INPUT:
I am a customer that needs help with my orders
REGISTER HandoffOrchestration Start: HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec/default
REGISTER ACTOR HandoffOrchestration MEMBER #4: HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_4
REGISTER ACTOR HandoffOrchestration MEMBER #3: HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_3
REGISTER ACTOR HandoffOrchestration MEMBER #2: HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_2
REGISTER ACTOR HandoffOrchestration MEMBER #1: HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_1
REGISTER HandoffOrchestration Complete: HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec/default
INVOKE HandoffOrchestration: HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec/default
YIELD HandoffOrchestration: HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec/default
AWAIT HandoffOrchestration: HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec/default
INIT HandoffOrchestration: HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Boot/default
START HandoffOrchestration: HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Boot/default
REQUEST Handoff agent [HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_1/default]
# RESPONSE Assistant - TriageAgent: Could you please provide more specific details about the assistance you need with your orders? Are you looking to check the order status, return an item, or request a refund?
RESULT Handoff agent [HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_1/default]: Could you please provide more specific details about the assistance you need with your orders? Are you looking to check the order status, return an item, or request a refund?
# INPUT: I'd like to track the status of my order
TOOL Handoff [HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_1/default]: OrderStatusAgent
RESULT Handoff agent [HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_1/default]:
REQUEST Handoff agent [HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_2/default]
# RESPONSE Assistant - OrderStatusAgent: Please provide your order ID so I can check the status for you.
RESULT Handoff agent [HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_2/default]: Please provide your order ID so I can check the status for you.
# INPUT: My order ID is 123
# RESPONSE Assistant - OrderStatusAgent: Your order (ID: 123) has been shipped and is expected to arrive in 2-3 days. If you need any further assistance, feel free to ask!
RESULT Handoff agent [HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_2/default]:
# INPUT: I want to return another order of mine
# RESPONSE Assistant - OrderStatusAgent: Could you please provide the order ID of the order you would like to return?
RESULT Handoff agent [HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_2/default]:
# INPUT: Order ID 321
TOOL Handoff [HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_2/default]: TriageAgent
# RESPONSE Assistant - OrderStatusAgent: I will transfer you to an agent who can assist you with returning your order (ID: 321). Please hold on for a moment.
RESULT Handoff agent [HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_2/default]:
REQUEST Handoff agent [HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_1/default]
TOOL Handoff [HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_1/default]: OrderStatusAgent
RESULT Handoff agent [HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_1/default]:
REQUEST Handoff agent [HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_2/default]
# RESPONSE Assistant - OrderStatusAgent: You are being transferred to an agent who can assist you with returning your order (ID: 321). Thank you for your patience!
RESULT Handoff agent [HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_2/default]:
REQUEST Handoff agent [HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Agent_1/default]
FAILURE HandoffOrchestration: HandoffOrchestration_e65bf3d31ef64e55af7124b5ced349ec_Boot/default
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status