Skip to main content

Think and generate answer

POST 

/api/v1/memory banks/:agent_id/think

Think and formulate an answer using memory bank identity, world facts, and opinions.

This endpoint:

  1. Retrieves agent facts (memory bank's identity)
  2. Retrieves world facts relevant to the query
  3. Retrieves existing opinions (memory bank's perspectives)
  4. Uses LLM to formulate a contextual answer
  5. Extracts and stores any new opinions formed
  6. Returns plain text answer, the facts used, and new opinions

Request

Responses

Successful Response