from jina import Client from docarray import DocList from executor import Prompt, Generation prompt = Prompt(text='suggest an interesting image generation prompt') client = Client(port=12345) response = client.post('/', inputs=[prompt], return_type=DocList[Generation])