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
Is it possible to use the @tanstack/ai-client just as the state manager and fetcher for the chat? My server doesn't follow the Tanstack AI's stream protocol, so I'd like to "inject" messages from a normal REST endpoint into the state of the ChatClient.
I understand that a custom adapter could work, but it looks like it requires some plumbing work that my not be optimal.
In my specific use case, I'd like to fetch the messages from a server that exposes them with the A2A protocol (https://github.com/a2aproject/A2A). Is it possible? If not, why?
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.
-
Is it possible to use the
@tanstack/ai-clientjust as the state manager and fetcher for the chat? My server doesn't follow the Tanstack AI's stream protocol, so I'd like to "inject" messages from a normal REST endpoint into the state of theChatClient.I understand that a custom adapter could work, but it looks like it requires some plumbing work that my not be optimal.
In my specific use case, I'd like to fetch the messages from a server that exposes them with the A2A protocol (https://github.com/a2aproject/A2A). Is it possible? If not, why?
I'm mirroring here the discussion from https://discord.com/channels/719702312431386674/1458746966388379690 with the hope to get more visibility.
Beta Was this translation helpful? Give feedback.
All reactions