MCPcopy Create free account
hub / github.com/compozy/agh / SessionHistory

Method SessionHistory

internal/cli/client.go:3081–3104  ·  view source on GitHub ↗
(
	ctx context.Context,
	id string,
	query SessionEventQuery,
)

Source from the content-addressed store, hash-verified

3079}
3080
3081func (c *unixSocketClient) SessionHistory(
3082 ctx context.Context,
3083 id string,
3084 query SessionEventQuery,
3085) ([]TurnHistoryRecord, error) {
3086 var response struct {
3087 History []TurnHistoryRecord `json:"history"`
3088 }
3089 path, err := c.sessionScopedPath(ctx, id, "/history")
3090 if err != nil {
3091 return nil, err
3092 }
3093 if err := c.doJSON(
3094 ctx,
3095 http.MethodGet,
3096 path,
3097 sessionEventValues(query),
3098 nil,
3099 &response,
3100 ); err != nil {
3101 return nil, err
3102 }
3103 return response.History, nil
3104}
3105
3106func (c *unixSocketClient) BindHostedMCP(
3107 ctx context.Context,

Callers 1

Calls 3

sessionScopedPathMethod · 0.95
doJSONMethod · 0.95
sessionEventValuesFunction · 0.85

Tested by 1