MCPcopy Create free account
hub / github.com/cli/cli / unmarshal

Function unmarshal

pkg/cmd/agent-task/shared/log.go:403–409  ·  view source on GitHub ↗
(raw string)

Source from the content-addressed store, hash-verified

401}
402
403func unmarshal[T any](raw string) *T {
404 var t T
405 if err := json.Unmarshal([]byte(raw), &t); err != nil {
406 return nil
407 }
408 return &t
409}
410
411// renderToolCallTitle renders a title for a tool call. Should be followed by a
412// call to render a markdown representation of the tool call's content.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected