Skip to content

Commit

Permalink
Upd agent sdk reference (#410)
Browse files Browse the repository at this point in the history
* document stable time and check interval

* upd
  • Loading branch information
bensonlee5 authored Nov 12, 2024
1 parent 70a49bf commit e3f9d99
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/app/files/Tags.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,23 @@ 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,
TriggerFlowParams,
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.
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit e3f9d99

Please sign in to comment.