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

Function sampleTaskRunDetailRecord

internal/cli/task_test.go:2950–2983  ·  view source on GitHub ↗
(status taskpkg.RunStatus)

Source from the content-addressed store, hash-verified

2948}
2949
2950func sampleTaskRunDetailRecord(status taskpkg.RunStatus) TaskRunDetailRecord {
2951 toolCallCount := int64(3)
2952 turnCount := int64(2)
2953 return TaskRunDetailRecord{
2954 Run: sampleTaskRunRecord(status),
2955 Task: contract.TaskReferencePayload{
2956 ID: "task-1",
2957 Identifier: "OPS-42",
2958 Title: "Investigate flaky task runs",
2959 Status: taskpkg.TaskStatusReady,
2960 Priority: taskpkg.PriorityHigh,
2961 Owner: &taskpkg.Ownership{Kind: taskpkg.OwnerKindPool, Ref: "triage"},
2962 Scope: taskpkg.ScopeWorkspace,
2963 WorkspaceID: "ws-alpha",
2964 LatestEventSeq: 7,
2965 },
2966 Session: &contract.TaskRunSessionPayload{
2967 SessionID: "sess-1",
2968 WorkspaceID: "ws-alpha",
2969 AgentName: "coder",
2970 Name: "QA coder",
2971 Channel: "builders",
2972 State: "active",
2973 CreatedAt: fixedTestNow,
2974 UpdatedAt: fixedTestNow.Add(time.Minute),
2975 },
2976 Summary: contract.TaskRunOperationalSummaryPayload{
2977 LastActivityAt: fixedTestNow.Add(2 * time.Minute),
2978 LastEventType: "agent_message",
2979 ToolCallCount: &toolCallCount,
2980 TurnCount: &turnCount,
2981 },
2982 }
2983}
2984
2985func sampleTaskExecutionRecord() TaskExecutionRecord {
2986 return TaskExecutionRecord{

Calls 2

sampleTaskRunRecordFunction · 0.85
AddMethod · 0.45

Tested by

no test coverage detected