code_utils
autogen.code_utils.implement
implement
(openai<1)
Implement a function from a definition.
Name | Description |
---|---|
definition | The function definition, including the signature and docstr. Type: str |
configs | The list of configurations for completion. Type: list[dict] | None Default: None |
assertions | The assertion code which serves as a filter of the responses, or an assertion generator. Type: str | Callable[[str], tuple[str, float]] | None Default: <function generate_assertions> |
Type | Description |
---|---|
tuple[str, float] | str: The implementation. float: The cost of the implementation. int: The index of the configuration which generates the implementation. |