ConneryService#

class langchain_community.tools.connery.service.ConneryService[source]#

Bases: BaseModel

Service for interacting with the Connery Runner API.

It gets the list of available actions from the Connery Runner, wraps them in ConneryAction Tools and returns them to the user. It also provides a method for running the actions.

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 api_key: str | None = None#
param runner_url: str | None = None#
get_action(action_id: str) ConneryAction[source]#

Returns the specified action available in the Connery Runner. :param action_id: The ID of the action to return. :type action_id: str

Returns:

The action with the specified ID.

Return type:

ConneryAction

Parameters:

action_id (str)

list_actions() List[ConneryAction][source]#

Returns the list of actions available in the Connery Runner. :returns: The list of actions available in the Connery Runner. :rtype: List[ConneryAction]

Return type:

List[ConneryAction]

run_action(action_id: str, input: Dict[str, str] = {}) Dict[str, str][source]#

Runs the specified Connery Action with the provided input. :param action_id: The ID of the action to run. :type action_id: str :param input: The input object expected by the action. :type input: Dict[str, str]

Returns:

The output of the action.

Return type:

Dict[str, str]

Parameters:
  • action_id (str)

  • input (Dict[str, str])

Examples using ConneryService