session_put
Store a named curve, index, or market block in the session so later bootstrap and pricing calls can reference it, with validation against the engine schema.
Instructions
Store a curve, index or market block under a name for later calls.
Args:
name: free-form handle, e.g. sofr.
kind: curve (an engine TermStructure or a build_curve result,
whose indices are kept alongside), index (an IndexDef) or
market ({curves: [...], indices: [...]}).
value: the object; it is validated against the engine schema.
market_data_source: where the numbers in value come from. user_pasted
(the user pasted or typed the numbers in this conversation), user_file
(the user attached a file/screenshot the numbers were read from),
engine_example (an engine example's pricing block, only when the user
explicitly asked to run an example), session (a market previously
stored in this session, which itself came from one of the above). There is
no value for estimated, recalled or placeholder data. If you would have to
invent numbers, do not call this tool: ask the user for the data. A
build_curve result already carries its declaration; the two must agree.
In-memory only, per server process, least-recently-used eviction at
QUANTRA_SESSION_MAX_ITEMS (default 64). Reference it later as
{"session": "<name>"} in bootstrap_curve (and pricing tools); the stored
market_data_source is reported in their notes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| name | Yes | ||
| value | Yes | ||
| market_data_source | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||