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

Function taskRunSessionPayloadFromSession

internal/extension/host_api_tasks.go:1153–1168  ·  view source on GitHub ↗
(session *taskpkg.RunSessionRef)

Source from the content-addressed store, hash-verified

1151}
1152
1153func taskRunSessionPayloadFromSession(session *taskpkg.RunSessionRef) *apicontract.TaskRunSessionPayload {
1154 if session == nil {
1155 return nil
1156 }
1157
1158 return &apicontract.TaskRunSessionPayload{
1159 SessionID: session.SessionID,
1160 WorkspaceID: session.WorkspaceID,
1161 AgentName: session.AgentName,
1162 Name: session.Name,
1163 Channel: session.Channel,
1164 State: session.State,
1165 CreatedAt: session.CreatedAt,
1166 UpdatedAt: session.UpdatedAt,
1167 }
1168}
1169
1170func taskRunOperationalSummaryPayloadFromSummary(
1171 summary taskpkg.RunOperationalSummary,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected