Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct {
OrgID string `json:"org_id"`
ProjectID string `json:"project_id"`
// UserID is the assistant owner at mint time. It outlives an ownership
// transfer by at most the token TTL — after that the next /turn mints
// a fresh token against the new owner.
UserID string `json:"user_id"`
AssistantID string `json:"assistant_id"`
// ThreadID is omitted for v2 assistant-scoped tokens (a single VM serves
// every thread under one assistant). Older v1 tokens still carry it and
// must remain valid until the TTL drains.
ThreadID string `json:"thread_id,omitempty"`
jwt.RegisteredClaims
}
type GenerateInput ¶
Click to show internal directories.
Click to hide internal directories.