agent/pkg/agentic/session_example_test.go

18 lines
394 B
Go
Raw Permalink Normal View History

// 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
}