Method
getMatrixAgentSchema POST
Copy POST

Executes a deployed AI agent function using the arguments as keyword arguments to the agent execute function.

Arguments:

REQUIRED KEY TYPE DESCRIPTION
Yes deploymentToken str The deployment token used to authenticate access to created deployments. This token is only authorized to predict on deployments in this project, so it is safe to embed this model inside of an application or website.
Yes deploymentId str A unique string identifier for the deployment created under the project.
Yes query str User input query to initialize the matrix computation.
No docInfos list An optional list of documents use for constructing the matrix. A keyword 'doc_id' is expected to be present in each document for retrieving contents from docstore.
No deploymentConversationId str A unique string identifier for the deployment conversation used for the conversation.
No externalSessionId str A unique string identifier for the session used for the conversation. If both deployment_conversation_id and external_session_id are not provided, a new session will be created.
Note: The arguments for the API methods follow camelCase but for Python SDK underscore_case is followed.

Response:

KEY TYPE DESCRIPTION
success Boolean true if the call succeeded, false if there was an error
deploymentConversationId Unique String Identifier
matrixAgentSchema MatrixAgentSchema

Exceptions:

TYPE WHEN
DataNotFoundError

deploymentId is not found.

DataNotFoundError

deploymentConversationId is not found.

DataNotFoundError

externalSessionId is not found.

Language: