17 lines
394 B
Go
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
|
|
}
|