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

Function agentSessionActorContext

internal/task/manager_test.go:9517–9523  ·  view source on GitHub ↗
(sessionID string)

Source from the content-addressed store, hash-verified

9515}
9516
9517func agentSessionActorContext(sessionID string) ActorContext {
9518 actor := validActorContext()
9519 trimmedSessionID := strings.TrimSpace(sessionID)
9520 actor.Actor = ActorIdentity{Kind: ActorKindAgentSession, Ref: trimmedSessionID}
9521 actor.Origin = Origin{Kind: OriginKindAgentSession, Ref: trimmedSessionID}
9522 return actor
9523}
9524
9525func assertAutonomyReason(t *testing.T, err error, want AutonomyReasonCode) {
9526 t.Helper()

Calls 1

validActorContextFunction · 0.85

Tested by

no test coverage detected