Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upd agent sdk reference #410

Merged
merged 4 commits into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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