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

Method parse_model

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

Source from the content-addressed store, hash-verified

124 }
125
126 pub fn parse_model(mut self, fields: &HashMap<&'gc str, Expr<'gc>>) -> Self {
127 if let Some(Expr::Literal {
128 value: Literal::String(value),
129 ..
130 }) = fields.get("model")
131 {
132 self.model = *value;
133 }
134 self
135 }
136
137 pub fn parse_tools<F>(mut self, fields: &HashMap<&'gc str, Expr<'gc>>, mut f: F) -> Self
138 where

Callers 1

generate_stmtMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected