sessions
List Sessions
sessions
List Sessions
GET
/
sessions
{
"items": [
{
"situation": "<string>",
"system_template": "{%- if agent.name -%}\nYou are {{agent.name}}.{{\" \"}}\n{%- endif -%}\n\n{%- if agent.about -%}\nAbout you: {{agent.about}}.{{\" \"}}\n{%- endif -%}\n\n{%- if user -%}\nYou are talking to a user\n {%- if user.name -%}{{\" \"}} and their name is {{user.name}}\n {%- if user.about -%}. About the user: {{user.about}}.{%- else -%}.{%- endif -%}\n {%- endif -%}\n{%- endif -%}\n\n{{NEWLINE}}\n\n{%- if session.situation -%}\nSituation: {{session.situation}}\n{%- endif -%}\n\n{{NEWLINE+NEWLINE}}\n\n{%- if agent.instructions -%}\nInstructions:{{NEWLINE}}\n {%- if agent.instructions is string -%}\n {{agent.instructions}}{{NEWLINE}}\n {%- else -%}\n {%- for instruction in agent.instructions -%}\n - {{instruction}}{{NEWLINE}}\n {%- endfor -%}\n {%- endif -%}\n {{NEWLINE}}\n{%- endif -%}\n\n{%- if docs -%}\nRelevant documents:{{NEWLINE}}\n {%- for doc in docs -%}\n {{doc.title}}{{NEWLINE}}\n {%- if doc.content is string -%}\n {{doc.content}}{{NEWLINE}}\n {%- else -%}\n {%- for snippet in doc.content -%}\n {{snippet}}{{NEWLINE}}\n {%- endfor -%}\n {%- endif -%}\n {{\"---\"}}\n {%- endfor -%}\n{%- endif -%}",
"summary": "<string>",
"render_templates": true,
"token_budget": 123,
"context_overflow": "truncate",
"auto_run_tools": false,
"forward_tool_calls": false,
"recall_options": {
"mode": "vector",
"num_search_messages": 4,
"max_query_length": 1000,
"alpha": 0.7,
"confidence": 0.6,
"limit": 10,
"lang": "en-US",
"metadata_filter": {},
"mmr_strength": 0
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"kind": "<string>"
}
]
}
Authorizations
Query Parameters
Available options:
created_at
, updated_at
Available options:
asc
, desc
Response
200
application/json
Successful Response
items.system_template
string
default:
{%- if agent.name -%}
You are {{agent.name}}.{{" "}}
{%- endif -%}
{%- if agent.about -%}
About you: {{agent.about}}.{{" "}}
{%- endif -%}
{%- if user -%}
You are talking to a user
{%- if user.name -%}{{" "}} and their name is {{user.name}}
{%- if user.about -%}. About the user: {{user.about}}.{%- else -%}.{%- endif -%}
{%- endif -%}
{%- endif -%}
{{NEWLINE}}
{%- if session.situation -%}
Situation: {{session.situation}}
{%- endif -%}
{{NEWLINE+NEWLINE}}
{%- if agent.instructions -%}
Instructions:{{NEWLINE}}
{%- if agent.instructions is string -%}
{{agent.instructions}}{{NEWLINE}}
{%- else -%}
{%- for instruction in agent.instructions -%}
- {{instruction}}{{NEWLINE}}
{%- endfor -%}
{%- endif -%}
{{NEWLINE}}
{%- endif -%}
{%- if docs -%}
Relevant documents:{{NEWLINE}}
{%- for doc in docs -%}
{{doc.title}}{{NEWLINE}}
{%- if doc.content is string -%}
{{doc.content}}{{NEWLINE}}
{%- else -%}
{%- for snippet in doc.content -%}
{{snippet}}{{NEWLINE}}
{%- endfor -%}
{%- endif -%}
{{"---"}}
{%- endfor -%}
{%- endif -%}
Available options:
truncate
, adaptive
Available options:
hybrid
, vector
, text
Required range:
0 < x < 1
Required range:
-1 < x < 1
Required range:
1 < x < 50
Allowed value:
"en-US"
Required range:
0 < x < 1
{
"items": [
{
"situation": "<string>",
"system_template": "{%- if agent.name -%}\nYou are {{agent.name}}.{{\" \"}}\n{%- endif -%}\n\n{%- if agent.about -%}\nAbout you: {{agent.about}}.{{\" \"}}\n{%- endif -%}\n\n{%- if user -%}\nYou are talking to a user\n {%- if user.name -%}{{\" \"}} and their name is {{user.name}}\n {%- if user.about -%}. About the user: {{user.about}}.{%- else -%}.{%- endif -%}\n {%- endif -%}\n{%- endif -%}\n\n{{NEWLINE}}\n\n{%- if session.situation -%}\nSituation: {{session.situation}}\n{%- endif -%}\n\n{{NEWLINE+NEWLINE}}\n\n{%- if agent.instructions -%}\nInstructions:{{NEWLINE}}\n {%- if agent.instructions is string -%}\n {{agent.instructions}}{{NEWLINE}}\n {%- else -%}\n {%- for instruction in agent.instructions -%}\n - {{instruction}}{{NEWLINE}}\n {%- endfor -%}\n {%- endif -%}\n {{NEWLINE}}\n{%- endif -%}\n\n{%- if docs -%}\nRelevant documents:{{NEWLINE}}\n {%- for doc in docs -%}\n {{doc.title}}{{NEWLINE}}\n {%- if doc.content is string -%}\n {{doc.content}}{{NEWLINE}}\n {%- else -%}\n {%- for snippet in doc.content -%}\n {{snippet}}{{NEWLINE}}\n {%- endfor -%}\n {%- endif -%}\n {{\"---\"}}\n {%- endfor -%}\n{%- endif -%}",
"summary": "<string>",
"render_templates": true,
"token_budget": 123,
"context_overflow": "truncate",
"auto_run_tools": false,
"forward_tool_calls": false,
"recall_options": {
"mode": "vector",
"num_search_messages": 4,
"max_query_length": 1000,
"alpha": 0.7,
"confidence": 0.6,
"limit": 10,
"lang": "en-US",
"metadata_filter": {},
"mmr_strength": 0
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"kind": "<string>"
}
]
}