Documentation
¶
Index ¶
Constants ¶
View Source
const Version = "0.1.0-dev"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Admission ¶
type Admission struct {
Execution *ExecutionGrant `json:"execution,omitempty"`
RunID string `json:"run_id"`
Agent agentcore.Agent `json:"agent"`
Context string `json:"context"`
AllowedTools []string `json:"allowed_tools"`
}
Admission is an immutable host policy snapshot. All local execution still passes the CLI's own tool and approval policy before reaching the OS.
type Connection ¶
type Connection struct {
URL string `json:"url"`
Descriptor Descriptor `json:"descriptor"`
CredentialStore string `json:"credential_store"`
}
type Descriptor ¶
type Descriptor struct {
Capabilities []string `json:"capabilities,omitempty"`
ProtocolVersion string `json:"protocol_version"`
AppID string `json:"app_id"`
Name string `json:"name"`
APIBaseURL string `json:"api_base_url"`
Issuer string `json:"issuer"`
ClientID string `json:"client_id"`
Resource string `json:"resource"`
Scopes []string `json:"scopes"`
}
type ExecutionGrant ¶
type ExecutionGrant struct {
ID string `json:"id"`
RunID string `json:"run_id"`
Epoch int64 `json:"epoch"`
LocalRunID string `json:"local_run_id,omitempty"`
PolicyHash string `json:"policy_hash"`
LeaseExpiresAt time.Time `json:"lease_expires_at"`
}
ExecutionGrant is a host-issued, revocable identity for one local execution. It grants no authority without the connection's authenticated user token.
type Session ¶
type Session struct {
Home string
Store *store.SQL
Engine *engine.Engine
Events chan engine.Event
Memory memory.Backend
// contains filtered or unexported fields
}
func OpenSession ¶
func OpenSession(dir string, factory runtime.NativeModelFactory) (*Session, error)
Click to show internal directories.
Click to hide internal directories.