fromtyping_extensionsimportAnnotatedfromhera.exprimportgfromhera.sharedimportglobal_configfromhera.workflowsimportInput,Output,Parameter,Workflowfromhera.workflows.modelsimportSuppliedValueFrom,ValueFromglobal_config.experimental_features["decorator_syntax"]=True# We start by defining our Workfloww=Workflow(generate_name="http-workflow-")# This defines the template's inputsclassMyInput(Input):url:str="https://example.com"classMyOutput(Output):approve:Annotated[str,Parameter(name="approve",value_from=ValueFrom(supplied=SuppliedValueFrom(),),),]# We then use the decorators of the `Workflow` object# to set the entrypoint and create a HTTP template@w.set_entrypoint@w.http_template(timeout_seconds=20,url=f"{g.inputs.parameters.url:$}",method="GET",headers=[{"name":"x-header-name","value":"test-value"}],success_condition=str(g.response.body.contains("google")),# type: ignorebody="test body",)defbasic_hello_world(my_input:MyInput)->MyOutput:...