How to store additional metadata in the thread? #1966
ouvreboite
started this conversation in
General
Replies: 0 comments
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.
-
TLDR: what's is the best practice to store conversational metadata?
The
AgentThreadseems to have the good role to store metadata related to a conversation, but it's sealed.The two extensions points that I'm seeing are:
ChatClientAgentThread.ThreadState.StoreState(fed fromChatMessageStore.Serialize())ChatClientAgentThread.ThreadState.AIContextProviderState(fed fromAIContextProvider.Serialize())Both
ChatMessageStoreandAIContextProviderhave a very limited surface area (they can mostly interact with incoming/outgoing messages).But what if we want to store custom metadata that are not from the messages?
For example some user-specific data extracted during the tools invokations but that are not meant to be in the tool output, so would not end up in the messages, or some user specific data fetched only at the start of the conversation?
Beta Was this translation helpful? Give feedback.
All reactions