MCPcopy Index your code
hub / github.com/github/copilot-sdk / Update

Method Update

go/rpc/zrpc.go:16286–16300  ·  view source on GitHub ↗

Update writes new content to the session plan file. RPC method: session.plan.update. Parameters: Replacement contents to write to the session plan file.

(ctx context.Context, params *PlanUpdateRequest)

Source from the content-addressed store, hash-verified

16284//
16285// Parameters: Replacement contents to write to the session plan file.
16286func (a *PlanAPI) Update(ctx context.Context, params *PlanUpdateRequest) (*SessionPlanUpdateResult, error) {
16287 req := map[string]any{"sessionId": a.sessionID}
16288 if params != nil {
16289 req["content"] = params.Content
16290 }
16291 raw, err := a.client.Request(ctx, "session.plan.update", req)
16292 if err != nil {
16293 return nil, err
16294 }
16295 var result SessionPlanUpdateResult
16296 if err := json.Unmarshal(raw, &result); err != nil {
16297 return nil, err
16298 }
16299 return &result, nil
16300}
16301
16302// Experimental: PluginsAPI contains experimental APIs that may change or be removed.
16303type PluginsAPI sessionAPI

Callers 8

TestSessionFSE2EFunction · 0.45
TestRPCSessionStateE2EFunction · 0.45
TestRpcServerPluginsFunction · 0.45
TestRPCMCPConfigE2EFunction · 0.45
TestRPCEventLogE2EFunction · 0.45
TestSessionRPCE2EFunction · 0.45

Calls 1

RequestMethod · 0.45

Tested by 7

TestSessionFSE2EFunction · 0.36
TestRPCSessionStateE2EFunction · 0.36
TestRpcServerPluginsFunction · 0.36
TestRPCMCPConfigE2EFunction · 0.36
TestRPCEventLogE2EFunction · 0.36
TestSessionRPCE2EFunction · 0.36