How to add custom_metadata when artifacts are created through savefileasartifactplugin #5923
|
I am in google adk 1.30 version. I want to know how to get the custom_metadata added to the artifact when created through savefileasartifactplugin. Is there a way to get it updated afterwards in any of the callbacks? Also let me know how to retrieve them if I am able to create custom metadata. Thanks. |
Replies: 2 comments 2 replies
|
I'd recommend you subclass the plugin and add your own logic. |
|
@boyangsvl - Thanks for your revert. I tried this. But when I try to retrieve it, its not displaying the timestamp which I stored. class CustomMetadataArtifactsPlugin(SaveFilesAsArtifactsPlugin): Can you please guide me where I am going wrong. |
I see what you mean. part_metadata is a new field and we do not support storing it in the current implementation of the artifact services yet. Could you submit an issue?