---
id: add-bank-background
title: "Add/merge memory bank background"
description: "Add new background information or merge with existing. LLM intelligently resolves conflicts, normalizes to first person, and optionally infers personality traits."
sidebar_label: "Add/merge memory bank background"
hide_title: true
hide_table_of_contents: true
api: eJzVWN9v4zYS/lcG7MtuoNhOrtcWenO2SWsguxts3L4kwWIijWU2FKmSlB2f4f/9MKRs03Kyi8vdy+UlsjicH98MvxlqLTxWTuR3YlyR9vARNVZUk/biIRMlucLKxkujRS7GZQmalvCIxVNlTatLkHpmbI0sAMZCTbYiWEo/B3qWzktdDeD6+iNI7UkpySbUCiw5oxbkoDB6pmThXQaa9Sj5L3LgDcykdR4ass7oDFCXYIIXqNSKjZJ13Soq6VfgLUrvBiITpiEb/JmUIhdYll+RrX7dOy0y0aDFmjxZjnwtNNbEwkFQsoDkeBv0c5EJS3+30lIpcm9byoQr5lSjyNfCrxre57yVuhKZ8NIrfhGhnJRis3mI+8n5C1OueFNfXWG0Z7jztcCmUbII3g//coz5OrHWWI7NS3L8K9n2mhsfOpF+Hj+9nkNvAMtyl0qxyUTblOjpa4J2YvPRGEWoE6N/BHG4ScT79iczCKHHRMKFrOBKLuiFhMLMmhr8nKI7Zer2u5Jm2CqfB2Xvg5XwIgK72WRbJ83jX1T4g0ze7fB7SNJWlhc7/V9i1o6c795DbUpSMDOWAZO6GrKHUlevIMulSc9YN2wpyZ6YwBIdPBqrQWqY0jM68TLoMaoNB2bJNUa7WAnnoxH/O3Tzti0Kcm7WKvjSCYs311pydr5RbnvsuGx69YJ69XkWDtuhatOQ1uRcoli39SNZkYkan2Xd1iI/y0QtdXwe7Q1+3u7t52i7wOVMzw1ZSbogeDc6PXvPvhVGu0KS9tK07q3WPxwp6btxJLH3gJ69xQVZJyPy/6nxy3R/3266uDeJlSXCR0VvDXh8oOCoOaSre6uaWmu8LKSr32LzU7L9mMZ2a3t7jxLdV+ct6crP32LxQqKD262Cvs3fzRKct0ZXanXAV1LPVMtV5sA0UkujdyB8h4jMvoqP67JXKf0sHuLbjz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NhgNRuHSYpyvUae2ynIYv2rEqjwguwPSSRnu/+JLSdcb+BgOG4UytL0A57oj/TuBjRSZWJyFyZNPgMhEnnwnOZyr5twx8juxXvNZ/sOqzYZfM+OsRH73kIkFWskTS+jVpXT8XIp8hsrRN/B896Vrku/hNce3vVBzJ1ygavmXyMQTrdJPO6H9zwlLssGHuNx9KTkNTXq//Whm4Xki7hgXBTX+m7IPSS+9+Xw7Zbi6b0A8TIpcWFzyAIDL6GpMXBhowru12JK2yEXUyX//Bl8n5ck=
sidebar_class_name: "post api-method"
info_path: docs/api-reference/endpoints/agent-memory-api
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Add/merge agent background"}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/api/v1/memory banks/{agent_id}/background"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Add new background information or merge with existing. LLM intelligently resolves conflicts, normalizes to first person, and optionally infers personality traits.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"bank ID"}}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={{"required":true,"content":{"application/json":{"schema":{"properties":{"content":{"type":"string","title":"Content","description":"New background information to add or merge"},"update_personality":{"type":"boolean","title":"Update Personality","description":"If true, infer Big Five personality traits from the merged background (default: true)","default":true}},"type":"object","required":["content"],"title":"AddBackgroundRequest","description":"Request model for adding/merging background information.","example":{"content":"I was born in Texas","update_personality":true}}}}}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"background":{"type":"string","title":"Background"},"personality":{"anyOf":[{"properties":{"openness":{"type":"number","maximum":1,"minimum":0,"title":"Openness","description":"Openness to experience (0-1)"},"conscientiousness":{"type":"number","maximum":1,"minimum":0,"title":"Conscientiousness","description":"Conscientiousness (0-1)"},"extraversion":{"type":"number","maximum":1,"minimum":0,"title":"Extraversion","description":"Extraversion (0-1)"},"agreeableness":{"type":"number","maximum":1,"minimum":0,"title":"Agreeableness","description":"Agreeableness (0-1)"},"neuroticism":{"type":"number","maximum":1,"minimum":0,"title":"Neuroticism","description":"Neuroticism (0-1)"},"bias_strength":{"type":"number","maximum":1,"minimum":0,"title":"Bias Strength","description":"How strongly personality influences opinions (0-1)"}},"type":"object","required":["openness","conscientiousness","extraversion","agreeableness","neuroticism","bias_strength"],"title":"PersonalityTraits","description":"Personality traits based on Big Five model.","example":{"agreeableness":0.7,"bias_strength":0.7,"conscientiousness":0.6,"extraversion":0.5,"neuroticism":0.3,"openness":0.8}},{"type":"null"}]}},"type":"object","required":["background"],"title":"BackgroundResponse","description":"Response model for background update.","example":{"background":"I was born in Texas. I am a software engineer with 10 years of experience.","personality":{"agreeableness":0.8,"bias_strength":0.6,"conscientiousness":0.6,"extraversion":0.5,"neuroticism":0.4,"openness":0.7}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}
>
  
</StatusCodes>


      