Note:This method can only be used locally. It is not available with remote inference.
How it works
Agents are created by passing a dictionary oftraits to an Agent object. For example:
Designing question-based traits
For efficiency or other reasons, we may want to minimize the set of traits that we pass to the agent when we create it, and instead only generate certain traits to use with specific questions. To do this, we can create a method for the desired conditional logic and pass it to an agent as thedynamic_traits_function parameter:
