| sub_session_query | R Documentation |
Creates a scoped child ChatSession for a focused task. The child uses an
environment whose parent is the parent session environment, so writes stay in
the child scope. Only a compact result summary and trace are written back to
the parent context state.
sub_session_query(
session,
task,
context_handles = NULL,
max_turns = 3L,
budget = NULL,
timeout = NULL
)
session |
Parent |
task |
Focused child task. |
context_handles |
Optional context handle IDs to summarize for the child. |
max_turns |
Maximum child generation/tool turns. |
budget |
Optional budget metadata recorded in the result. |
timeout |
Optional timeout in seconds. Currently recorded as metadata. |
A compact sub-session result list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.