Created
September 28, 2024 17:55
-
-
Save arunreddy/6993aaa1850edd8f12468c3229c7ec86 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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