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

Class Agent

aiscript-vm/src/ai/agent.rs:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#[derive(Collect)]
27#[collect(no_drop)]
28pub 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.

Callers 5

fromMethod · 0.85
fromMethod · 0.85
generate_stmtMethod · 0.85
agent_declarationMethod · 0.85
make_response_objectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected