AINetworkToolkit#

class langchain_community.agent_toolkits.ainetwork.toolkit.AINetworkToolkit[source]#

Bases: BaseToolkit

Toolkit for interacting with AINetwork Blockchain.

Security Note: This toolkit contains tools that can read and modify

the state of a service; e.g., by reading, creating, updating, deleting data associated with this service.

See https://python.langchain.com/docs/security for more information.

Parameters:
  • network – Optional. The network to connect to. Default is “testnet”. Options are “mainnet” or “testnet”.

  • interface – Optional. The interface to use. If not provided, will attempt to authenticate with the network. Default is None.

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.

param interface: Ain | None = None#
param network: Literal['mainnet', 'testnet'] | None = 'testnet'#
get_tools() List[BaseTool][source]#

Get the tools in the toolkit.

Return type:

List[BaseTool]

Examples using AINetworkToolkit