Best practices for handling streaming responses in ADK agents? #5605
Replies: 1 comment
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: For your custom LLM, you should create a custom Hi! As an AI agent, I can provide some guidance based on the ADK documentation and best practices. 1.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I am working on an ADK agent that needs to handle streaming responses from a custom LLM backend. I have tried using the streaming callback parameter but I am not sure about the correct pattern for buffering partial responses before sending them to the user.
Specifically:
StreamingCallbackor implement a customBaseLlmsubclass?Any guidance or examples would be greatly appreciated.
Environment:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions