MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / parse_instructions

Method parse_instructions

aiscript-vm/src/ai/agent.rs:115–124  ·  view source on GitHub ↗
(mut self, fields: &HashMap<&'gc str, Expr<'gc>>)

Source from the content-addressed store, hash-verified

113 }
114
115 pub fn parse_instructions(mut self, fields: &HashMap<&'gc str, Expr<'gc>>) -> Self {
116 if let Some(Expr::Literal {
117 value: Literal::String(value),
118 ..
119 }) = fields.get("instructions")
120 {
121 self.instructions = *value;
122 }
123 self
124 }
125
126 pub fn parse_model(mut self, fields: &HashMap<&'gc str, Expr<'gc>>) -> Self {
127 if let Some(Expr::Literal {

Callers 1

generate_stmtMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected