Call out to Amazon Q service.
invoke(
self,
input: Union[str, ChatPromptValue, List[ChatPromptValue]],
config: Optional[RunnableConfig] = None,
**kwargs: Any = {}
) -> ChatPromptValueExample:
model = AmazonQ(
credentials=your_credentials,
application_id=your_app_id
)
response = model.invoke("Tell me a joke")| Name | Type | Description |
|---|---|---|
input* | Union[str, ChatPromptValue, List[ChatPromptValue]] | The prompt to pass into the model. |