Skip to main content

agent

Attribute Macro agent 

Source
#[agent]
Expand description

Turns fn calc() {} into a fn returning a configured Agent: the doc comment becomes the instructions and the fn name, _ read as -, the agent name. Keys such as model, tools = [add] and evals map to the builder methods of the same name.