πŸ“š/knowledge

Ask a question to Brian

POST https://api.brianknows.org/api/v0/agent/knowledge

Allows you to send a prompt to Brian and receive a textual response along with the resources used to.

Headers

Name
Type
Description

x-brian-api-key*

String

Brian API key.

Content-Type*

application/json

Body content type.

Request Body

Name
Type
Description

prompt*

String

Prompt used to generate the response.

kb*

String

Knowledge box where you want to search information.

Response
{
  "result": {
    "input": "what is uniswap",
    "chat_history": [],
    "context": [
      {
        "pageContent": "...",
        "metadata": {
          "description": "...",
          "language": "...",
          "source": "...",
          "title": "..."
        }
      },
      ...
    ],
    "answer": "..."
  }
}

Requesting information

Last updated