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
In the HelloWorld program of the example, both client.send_message(request) and client.send_message_streaming(streaming_request) will execute the HelloWorldAgentExecutor.execute method. So how can we distinguish between these two invocation methods within the execute method? It seems there is no attribute in the current context to identify the difference.
(In fact, the current HelloWorld program does not well demonstrate the characteristics of streaming.) I think if we can distinguish the caller, I can call the agent's invoke method and stream method separately in the execute method.
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.
-
In the HelloWorld program of the example, both
client.send_message(request)
andclient.send_message_streaming(streaming_request)
will execute theHelloWorldAgentExecutor.execute
method. So how can we distinguish between these two invocation methods within theexecute
method? It seems there is no attribute in the currentcontext
to identify the difference.(In fact, the current HelloWorld program does not well demonstrate the characteristics of streaming.) I think if we can distinguish the caller, I can call the agent's
invoke
method andstream
method separately in theexecute
method.Beta Was this translation helpful? Give feedback.
All reactions