You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 79074b7
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -63,7 +73,7 @@ func (*HistoryProvider) Usage(_ context.Context, _ SessionContext, available Ava
63
73
parts=append(parts, ref+": List accessible chat sessions with their bound contact/route info. Filter by `type` (chat/schedule) or `platform`.")
64
74
}
65
75
ifref, ok:=available.Ref(ToolGetMessages()); ok {
66
-
parts=append(parts, ref+": Get recent messages from the current or selected session, or resolve one exact `message_id`.")
76
+
parts=append(parts, ref+": Get recent messages from the current or selected session, resolve one exact `message_id`, or page through an earlier tool result a summary cites by `ref`.")
67
77
iflistSessionsRef!="" {
68
78
parts=append(parts, "Use session IDs from "+listSessionsRef+" as `session_id` for "+ref+" when reading a specific conversation.")
Description: "Get recent messages from a chat session, or resolve one exact message ID. Defaults to the current session. Results are returned oldest-first.",
Description: "Get recent messages from a chat session, or resolve one exact message ID. Defaults to the current session. Results are returned oldest-first. When a summary cites an earlier tool result as ref=<message id>:<part index> and you need its original output, pass that ref: the stored result text of the current session comes back in pages with total_bytes; call again with offset set to next_offset until next_offset is absent.",
@@ -644,7 +782,10 @@ type listSessionsArgs struct {
644
782
typegetMessagesArgsstruct {
645
783
Beforestring`json:"before,omitempty" jsonschema:"ISO 8601 timestamp cursor. When provided, returns messages created before this time."`
646
784
Limit*int`json:"limit,omitempty" jsonschema:"Maximum number of messages to return. Default 30, max 100."`
785
+
MaxBytes*int`json:"max_bytes,omitempty" jsonschema:"With ref: the most bytes of the result to return in this page. Default: as many as one tool result holds."`
647
786
MessageIDstring`json:"message_id,omitempty" jsonschema:"Exact persisted message ID to resolve, such as a message_id returned in search_memory source_refs."`
787
+
Offset*int`json:"offset,omitempty" jsonschema:"With ref: byte offset in the result to start from; pass the previous page's next_offset. Default 0."`
788
+
Refstring`json:"ref,omitempty" jsonschema:"Tool result reference <message id>:<part index>, as cited by a summary (ref=...). Reads that earlier tool result's original text from the current session, one page at a time."`
648
789
SessionIDstring`json:"session_id,omitempty" jsonschema:"Session ID to read. Defaults to the current session when omitted."`
0 commit comments