Sessions
List Sessions
Sessions
List Sessions
GET
/
sessions
Authorizations
Query Parameters
Available options:
created_at
, updated_at
Available options:
asc
, desc
Response
200 - application/json
Available options:
truncate
, adaptive
Required range:
0 < x < 1
Required range:
-1 < x < 1
Allowed value:
"en-US"
Required range:
1 < x < 50
Required range:
0 < x < 1
Available options:
hybrid
, vector
, text
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 -%}