Skip to main content
POST
/
v1
/
memory
/
trust-weighted
Typescript (SDK)
import { RaijinLabsLucidAi } from "raijin-labs-lucid-ai";

const raijinLabsLucidAi = new RaijinLabsLucidAi();

async function run() {
  const result = await raijinLabsLucidAi.memory.lucidAddTrustWeightedMemory({
    xAgentPassportId: "<id>",
    body: {
      sourceAgentPassportId: "<id>",
    },
  });

  console.log(result);
}

run();
{
  "success": true,
  "data": {
    "memory_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "content_hash": "<string>",
    "prev_hash": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.lucid.foundation/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Lucid API key (lk_live_... or lk_test_...)

Headers

X-Agent-Passport-Id
string
required

Body

application/json
source_agent_passport_id
string
required
trust_score
number
Required range: 0 <= x <= 1
decay_factor
number
Required range: 0 <= x <= 1
weighted_relevance
number
Required range: 0 <= x <= 1
content
string
namespace
string
memory_lane
enum<string>
Available options:
self,
user,
shared,
market
metadata
object

Response

201 - application/json

Created

success
boolean
data
object