Skip to content

Instantly share code, notes, and snippets.

@arunreddy
Created September 28, 2024 17:55
Show Gist options
  • Save arunreddy/6993aaa1850edd8f12468c3229c7ec86 to your computer and use it in GitHub Desktop.
Save arunreddy/6993aaa1850edd8f12468c3229c7ec86 to your computer and use it in GitHub Desktop.
from agentifyme import get_logger, workflow
from pydantic import BaseModel
class SimpleResponse(BaseModel):
output: str
logger = get_logger()
@workflow(name="get_output")
def get_output(query: str) -> SimpleResponse:
_output = SimpleResponse(output=query)
logger.info(f"Output: {_output}")
return _output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment