From e3f9d9981dc1e4bcc663b26b048dac8e308c8822 Mon Sep 17 00:00:00 2001 From: Benson Date: Tue, 12 Nov 2024 18:50:18 +0000 Subject: [PATCH] Upd agent sdk reference (#410) * document stable time and check interval * upd --- docs/app/files/Tags.mdx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/app/files/Tags.mdx b/docs/app/files/Tags.mdx index 4e566271..a4bd9ad3 100644 --- a/docs/app/files/Tags.mdx +++ b/docs/app/files/Tags.mdx @@ -118,7 +118,7 @@ You can also tag files programmatically using the `add_file_tag_to_fileparam` fu - _param_ **url**: str - A URL to associate with the tag, if applicable. ```python -from ganymede_sdk.agent import ( +from agent_sdk import ( FileParam, FileWatcherResult, MultiFileParam, @@ -126,6 +126,15 @@ from ganymede_sdk.agent import ( add_file_tag_to_fileparam, ) +# pre v5.0 +# from ganymede_sdk.agent import ( +# FileParam, +# FileWatcherResult, +# MultiFileParam, +# TriggerFlowParams, +# add_file_tag_to_fileparam, +# ) + def execute(flow_params_fw: FileWatcherResult, **kwargs) -> TriggerFlowParams: """ Called when all glob patterns specified by get_param_mapping have been matched. @@ -161,7 +170,7 @@ Note that Virtualization stores a json file in the `C:/Program Files/Ganymede/` import json from pathlib import Path -from ganymede_sdk.agent import FileWatcherResult, NoOpFileTagParams, add_file_tag_to_fileparam +from agent_sdk import FileWatcherResult, NoOpFileTagParams, add_file_tag_to_fileparam from ganymede_sdk.file_tag import get_file_tags SESSION_JSON_PATH = Path("C:/Program Files/Ganymede/session.json")