| 26 | #[derive(Collect)] |
| 27 | #[collect(no_drop)] |
| 28 | pub struct Agent<'gc> { |
| 29 | pub name: InternedString<'gc>, |
| 30 | pub instructions: InternedString<'gc>, |
| 31 | pub model: InternedString<'gc>, |
| 32 | pub tools: HashMap<String, FnDef>, |
| 33 | pub tool_choice: ToolChoice, |
| 34 | pub methods: HashMap<InternedString<'gc>, Gc<'gc, Function<'gc>>>, |
| 35 | } |
| 36 | |
| 37 | // Controls which (if any) tool is called by the model. |
| 38 | // none means the model will not call any tool and instead generates a message. |
no outgoing calls
no test coverage detected