MCPcopy Create free account
hub / github.com/AI45Lab/Code / text

Method text

core/src/commands.rs:84–90  ·  view source on GitHub ↗

Create a simple text output.

(msg: impl Into<String>)

Source from the content-addressed store, hash-verified

82impl CommandOutput {
83 /// Create a simple text output.
84 pub fn text(msg: impl Into<String>) -> Self {
85 Self {
86 text: msg.into(),
87 state_changed: false,
88 action: None,
89 }
90 }
91
92 /// Create an output with a post-command action.
93 pub fn with_action(msg: impl Into<String>, action: CommandAction) -> Self {

Calls

no outgoing calls