Documentation
¶
Index ¶
- func AgentBind(ctx context.Context, store agentkit.SessionStore, id agentkit.SessionID) (agentkit.AgentID, error)
- func GlobalAgentBind(ctx context.Context, ws workspace.Service) (agentkit.AgentID, error)
- func GlobalModelBind(ctx context.Context, ws workspace.Service, agentID agentkit.AgentID) (string, error)
- func ModelBind(ctx context.Context, store agentkit.SessionStore, id agentkit.SessionID) (string, error)
- func ResolveActiveSessionID(ctx context.Context, store agentkit.SessionStore, entryKey agentkit.SessionID) (agentkit.SessionID, error)
- func ResolveAgentID(ctx context.Context, store agentkit.SessionStore, ws workspace.Service, ...) (effective, sessionBind, globalBind agentkit.AgentID, err error)
- func ResolveEffectiveModel(ctx context.Context, store agentkit.SessionStore, ws workspace.Service, ...) (effective, sessionOverride, globalOverride string, err error)
- func RuntimeStore(store agentkit.SessionStore) (agentkit.SessionRuntimeStore, error)
- func SetGlobalAgentBind(ctx context.Context, ws workspace.Service, agent agentkit.AgentID) error
- func SetGlobalModelBind(ctx context.Context, ws workspace.Service, agentID agentkit.AgentID, ...) error
- func SetSessionAgentBind(ctx context.Context, store agentkit.SessionStore, id agentkit.SessionID, ...) error
- func SetSessionModelBind(ctx context.Context, store agentkit.SessionStore, id agentkit.SessionID, ...) error
- type GlobalRuntimeData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentBind ¶
func AgentBind(ctx context.Context, store agentkit.SessionStore, id agentkit.SessionID) (agentkit.AgentID, error)
AgentBind returns the per-session agent override, or "" when unset.
func GlobalAgentBind ¶
GlobalAgentBind returns the workspace-wide default agent id, or "" when unset.
func GlobalModelBind ¶
func GlobalModelBind(ctx context.Context, ws workspace.Service, agentID agentkit.AgentID) (string, error)
GlobalModelBind returns the global default model for agentID, or "" when unset.
func ModelBind ¶
func ModelBind(ctx context.Context, store agentkit.SessionStore, id agentkit.SessionID) (string, error)
ModelBind returns the per-session model override, or "" when unset.
func ResolveActiveSessionID ¶
func ResolveActiveSessionID(ctx context.Context, store agentkit.SessionStore, entryKey agentkit.SessionID) (agentkit.SessionID, error)
ResolveActiveSessionID maps a stable active-session entry key to the current history SessionID. When no /new mapping exists, entryKey is returned unchanged.
func ResolveAgentID ¶
func ResolveAgentID( ctx context.Context, store agentkit.SessionStore, ws workspace.Service, sessionID agentkit.SessionID, eventAgent agentkit.AgentID, ) (effective, sessionBind, globalBind agentkit.AgentID, err error)
ResolveAgentID applies session bind, global default, then explicit event agent id.
func ResolveEffectiveModel ¶
func ResolveEffectiveModel( ctx context.Context, store agentkit.SessionStore, ws workspace.Service, sessionID agentkit.SessionID, agentID agentkit.AgentID, defaultModel string, ) (effective, sessionOverride, globalOverride string, err error)
ResolveEffectiveModel applies session override, then global (per agent), then defaultModel.
func RuntimeStore ¶
func RuntimeStore(store agentkit.SessionStore) (agentkit.SessionRuntimeStore, error)
RuntimeStore returns the session runtime overlay capability when present.
func SetGlobalAgentBind ¶
SetGlobalAgentBind sets or clears the workspace-wide default agent id.
func SetGlobalModelBind ¶
func SetGlobalModelBind(ctx context.Context, ws workspace.Service, agentID agentkit.AgentID, model string) error
SetGlobalModelBind sets or clears the global default model for agentID.
func SetSessionAgentBind ¶
func SetSessionAgentBind(ctx context.Context, store agentkit.SessionStore, id agentkit.SessionID, agent agentkit.AgentID) error
SetSessionAgentBind sets or clears the per-session agent override.
func SetSessionModelBind ¶
func SetSessionModelBind(ctx context.Context, store agentkit.SessionStore, id agentkit.SessionID, model string) error
SetSessionModelBind sets or clears the per-session model override.