nat.data_models.component_ref#

Classes#

ComponentRefNode

A node type for component runtime instances reference names in a networkx digraph.

ComponentRef

Abstract class used for the interface to derive ComponentRef objects.

EmbedderRef

A reference to an embedder in a NAT configuration object.

FunctionRef

A reference to a function in a NAT configuration object.

LLMRef

A reference to an LLM in a NAT configuration object.

MemoryRef

A reference to a memory in a NAT configuration object.

ObjectStoreRef

A reference to an object store in a NAT configuration object.

RetrieverRef

A reference to a retriever in a NAT configuration object.

AuthenticationRef

A reference to an API Authentication Provider in a NAT configuration object.

TTCStrategyRef

A reference to an TTC strategy in an NeMo Agent Toolkit configuration object.

Functions#

generate_instance_id(→ str)

Generates a unique identifier for a python object derived from its python unique id.

Module Contents#

generate_instance_id(input_object: Any) str#

Generates a unique identifier for a python object derived from its python unique id.

Args:

input_object (typing.Any): The input object to receive a unique identifier.

Returns:

str: Unique identifier.

class ComponentRefNode(/, **data: Any)#

Bases: nat.data_models.common.HashableBaseModel

A node type for component runtime instances reference names in a networkx digraph.

Args:

ref_name (ComponentRef): The name of the component runtime instance. component_group (ComponentGroup): The component group in a NAT configuration object.

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.

self is explicitly positional-only to allow self as a field name.

ref_name: ComponentRef#
component_group: nat.data_models.component.ComponentGroup#
class ComponentRef#

Bases: str, abc.ABC

Abstract class used for the interface to derive ComponentRef objects.

Initialize self. See help(type(self)) for accurate signature.

property component_group: nat.data_models.component.ComponentGroup#
Abstractmethod:

Provides the component group this ComponentRef object represents.

Returns:

ComponentGroup: A component group of the NAT configuration object

class EmbedderRef#

Bases: ComponentRef

A reference to an embedder in a NAT configuration object.

Initialize self. See help(type(self)) for accurate signature.

property component_group#

Provides the component group this ComponentRef object represents.

Returns:

ComponentGroup: A component group of the NAT configuration object

class FunctionRef#

Bases: ComponentRef

A reference to a function in a NAT configuration object.

Initialize self. See help(type(self)) for accurate signature.

property component_group#

Provides the component group this ComponentRef object represents.

Returns:

ComponentGroup: A component group of the NAT configuration object

class LLMRef#

Bases: ComponentRef

A reference to an LLM in a NAT configuration object.

Initialize self. See help(type(self)) for accurate signature.

property component_group#

Provides the component group this ComponentRef object represents.

Returns:

ComponentGroup: A component group of the NAT configuration object

class MemoryRef#

Bases: ComponentRef

A reference to a memory in a NAT configuration object.

Initialize self. See help(type(self)) for accurate signature.

property component_group#

Provides the component group this ComponentRef object represents.

Returns:

ComponentGroup: A component group of the NAT configuration object

class ObjectStoreRef#

Bases: ComponentRef

A reference to an object store in a NAT configuration object.

Initialize self. See help(type(self)) for accurate signature.

property component_group#

Provides the component group this ComponentRef object represents.

Returns:

ComponentGroup: A component group of the NAT configuration object

class RetrieverRef#

Bases: ComponentRef

A reference to a retriever in a NAT configuration object.

Initialize self. See help(type(self)) for accurate signature.

property component_group#

Provides the component group this ComponentRef object represents.

Returns:

ComponentGroup: A component group of the NAT configuration object

class AuthenticationRef#

Bases: ComponentRef

A reference to an API Authentication Provider in a NAT configuration object.

Initialize self. See help(type(self)) for accurate signature.

property component_group#

Provides the component group this ComponentRef object represents.

Returns:

ComponentGroup: A component group of the NAT configuration object

class TTCStrategyRef#

Bases: ComponentRef

A reference to an TTC strategy in an NeMo Agent Toolkit configuration object.

Initialize self. See help(type(self)) for accurate signature.

property component_group#

Provides the component group this ComponentRef object represents.

Returns:

ComponentGroup: A component group of the NAT configuration object