--- jupytext: cell_metadata_filter: all formats: md:myst main_language: python notebook_metadata_filter: all text_representation: extension: .md format_name: myst format_version: 0.13 jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python name: python3 --- (example)= # PERIAN agent example usage This example shows how to use the PERIAN agent to execute tasks on PERIAN Job Platform. ```{code-cell} :lines_to_next_cell: 2 from flytekit import ImageSpec, task, workflow from flytekitplugins.perian_job import PerianConfig image_spec = ImageSpec( name="flyte-test", registry="my-registry", python_version="3.11", apt_packages=["wget", "curl", "git"], packages=[ "flytekitplugins-perian-job", ], ) ``` +++ {"lines_to_next_cell": 2} `PerianConfig` configures `PerianTask`. Tasks specified with `PerianConfig` will be executed on PERIAN Job Platform. ```{code-cell} @task( container_image=image_spec, task_config=PerianConfig( accelerators=1, accelerator_type="A100", ), ) def perian_hello(name: str) -> str: return f"hello {name}!" @workflow def my_wf(name: str = "world") -> str: return perian_hello(name=name) ```