Invoke the Bedrock agent.
invoke(
self,
input: Dict,
config: Optional[RunnableConfig] = None,
**kwargs: Any = {}
) -> OutputType| Name | Type | Description |
|---|---|---|
input* | Dict | The LangChain Runnable input dictionary that can include: input: The input text to the agent memory_id: The memory id to use for an agent with memory enabled session_id: The session id to use. If not provided, a new session will be started end_session: Boolean indicating whether to end a session or not intermediate_steps: The intermediate steps that are used to provide RoC invocation details |
config | Optional[RunnableConfig] | Default: NoneThe optional RunnableConfig |