Skip to content

Custom addition of input parameters in custom apps #1782

Closed Answered by mmabrouk
Arshil-Akkala asked this question in Q&A
Discussion options

You must be logged in to vote

You can achieve this by adding an argument of DictInput to your entrypoint function:

@ag.entrypoint
async def generate(
    inputs: ag.DictInput = ag.DictInput(default_keys=["country"]),
):
    prompt_user = ag.config.prompt_user.format(**inputs)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Arshil-Akkala
Comment options

@Arshil-Akkala
Comment options

Answer selected by mmabrouk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants