agent/pkg/agentic/session_example_test.go
Virgil 671a0872ef feat(agentic): add session lifecycle surfaces
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-31 12:06:40 +00:00

17 lines
394 B
Go

// SPDX-License-Identifier: EUPL-1.2
package agentic
import "fmt"
func Example_parseSession() {
session := parseSession(map[string]any{
"session_id": "ses_abc123",
"plan_slug": "ax-follow-up",
"agent_type": "codex",
"status": "active",
})
fmt.Println(session.SessionID, session.PlanSlug, session.AgentType, session.Status)
// Output: ses_abc123 ax-follow-up codex active
}