Skip to content

How to retrieve file_id when streaming a response from an agent? #12044

Answered by moonbox3
GabrelBulz asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @GabrelBulz, the file_id handle should be included as part of the StreamingAnnotationContent's file_id attribute. When you can StreamingChatMessageContent back from the agent, check for that StreamingAnnotationContent item type inside of the items collection.

By the way the reference file_id I am assuming you're working with SK Python (please correct me if I am wrong). You may need to use the on_intermediate_message callback to get a handle to intermediate messages, if the annotation content isn't returned with the final response.

Which agent type are you working with?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@GabrelBulz
Comment options

@moonbox3
Comment options

@GabrelBulz
Comment options

Answer selected by GabrelBulz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants