Store Short Term • AI Agent SDK

store_short_term: Store in short-term memory with optional quality metrics

store_short_term

Method

</div>

This is a method of the Memory class in the memory module.

Store in short-term memory with optional quality metrics

Signature

python
def store_short_term(text: str, metadata: Dict[str, Any], completeness: float, relevance: float, clarity: float, accuracy: float, weights: Dict[str, float], evaluator_quality: float, trust: Any, origin: Optional[str]) -> Any

Parameters

ParamField str

No description available.

ParamField Dict[str, Any]

No description available.

ParamField float

No description available.

ParamField float

No description available.

ParamField float

No description available.

ParamField float

No description available.

ParamField Dict[str, float]

No description available.

ParamField float

No description available.

ParamField Any

No description available.

ParamField Optional[str]

No description available.

Returns

ResponseField Any

The result of the operation.

Uses

  • logger.info
  • time.time_ns
  • time.time
  • store_short_term
  • logger.warning
  • datetime.now
  • insert_one
  • logger.error
  • conn.execute
  • json.dumps

Used By

Source

View on GitHub

praisonaiagents/memory/memory.py at line 677