(
state: &mut State<'gc>,
agent: Gc<'gc, Agent<'gc>>,
args: Vec<Value<'gc>>,
)
| 255 | |
| 256 | #[cfg(feature = "ai_test")] |
| 257 | pub async fn _run_agent<'gc>( |
| 258 | state: &mut State<'gc>, |
| 259 | agent: Gc<'gc, Agent<'gc>>, |
| 260 | args: Vec<Value<'gc>>, |
| 261 | ) -> Value<'gc> { |
| 262 | let message = args[0]; |
| 263 | let debug = args[1].as_boolean(); |
| 264 | println!("debug: {debug}"); |
| 265 | make_response_object( |
| 266 | state, |
| 267 | agent, |
| 268 | format!( |
| 269 | "input: {},instructions: {}, model: {}, tools: {:?}", |
| 270 | message, agent.instructions, agent.model, agent.tools |
| 271 | ), |
| 272 | ) |
| 273 | } |
| 274 | |
| 275 | #[cfg(not(feature = "ai_test"))] |
| 276 | pub async fn _run_agent<'gc>( |
no test coverage detected