nat.plugins.langchain.tools.code_generation_tool#
Attributes#
Classes#
Tool for generating code using the configured LLM. |
Functions#
|
Module Contents#
- log#
- class CodeGenerationTool(/, **data: Any)#
Bases:
nat.data_models.function.FunctionBaseConfigTool for generating code using the configured LLM.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- llm_name: nat.data_models.component_ref.LLMRef#
- async code_generation_tool(
- config: CodeGenerationTool,
- builder: nat.builder.builder.Builder,