Documentation
¶
Overview ¶
Package platform runs an accepted offer as one kagent session and A2A turn.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrRefused = errors.New("platform access refused")
ErrRefused identifies an explicit policy or grant refusal. A retry with another identity would change who owns the session.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Organization string
// StateDir is private and exclusive to one runner and caller identity.
StateDir string
Profiles []Profile
// Supply clients for the same caller. WorkspaceManager is required only
// for write and can connect on its first tool call. The caller's transport
// owns its per-service credentials, refresh and address policy.
AgentManager, WorkspaceManager ToolCaller
A2A pb.A2AServiceClient
ResolveContext func(context.Context, string) (json.RawMessage, error)
// GitAccess is the runner's git access. Under none (or empty) sessions
// start without a workspace; write authorizes the profile's workspace and
// passes its grant. read is refused, see ParseGitAccess.
GitAccess executor.GitAccess
}
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func (*Executor) Cancel ¶
Cancel leaves the conversation in kagent. A terminal CancelTask reply or subscription event is evidence of the outcome, including a completion that raced cancellation.
func (*Executor) Pending ¶
Pending lists durable attempts at runner startup. Resume each task that the runner still owns. A crash during delivery may replay its terminal report.
type Profile ¶
Profile maps an advertised placement to an agent and its workspace-manager workspace.
type ToolCaller ¶
type ToolCaller interface {
CallTool(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error)
}
ToolCaller calls tools on one configured MCP manager. Its transport supplies the caller's credentials for that manager's audience.