IRPCAgent.CallAgentApiV2

View as Markdown

Vault API / standard write session returns metadata structure version

Calls version 2 of the Aino agent service API for the session's user and returns the HTTP status and body. A temporary bridge for M-Files clients that cannot call the agent service directly; it will be deprecated when they can.

ServiceAino agents MFiles.IRPCAgent
gRPC method/MFiles.IRPCAgent/CallAgentApiV2
HTTP (mf-http-grpc)POST /grpc/v1/call-agent-api-v2
RequestAgentApiV2Request
ResponseAgentApiV2Response
Book and levelVault API, standard
Kindwrite
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentno
Returns metadata structure versionyes (in the mfiles-metadata-version-bin trailer)
Streamingnone (unary)

Remarks

Request: AgentApiV2Request

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
methodstringThe HTTP method: GET, POST, PUT, PATCH or DELETE. Empty means POST.
pathstringThe API path below the vault, for example conversations. Without the API version, the vault or a query string.
parametersstringThe request body, a JSON object, or empty for an empty object.
allow_delegationboolTrue to let the agent service call back to the vault as the session's user. Fails with "Not implemented." on servers that do not support it.

Response: AgentApiV2Response

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
statusint32The HTTP status code that the agent service returned.
datastringThe response body as returned by the agent service; empty when it had none.