invoke(
self,
input: Union[str, ChatPromptValue],
config: Optional[RunnableConfig| Name | Type | Description |
|---|---|---|
input* | Union[str, ChatPromptValue] |
Call out to Amazon Q service.
Example:
.. code-block:: python
model = AmazonQ( credentials=your_credentials, application_id=your_app_id ) response = model.invoke("Tell me a joke")
The prompt to pass into the model.