fabricatio_capable.capabilities.capable

This module contains the capabilities for the capable.

Classes

Capable

A class that represents a capable entity with advanced judgment and tool usage capabilities.

Module Contents

class fabricatio_capable.capabilities.capable.Capable(/, **data: Any)

Bases: fabricatio_core.models.generic.WithBriefing, fabricatio_judge.capabilities.advanced_judge.EvidentlyJudge, fabricatio_tool.capabilities.use_tool.UseTool, abc.ABC

A class that represents a capable entity with advanced judgment and tool usage capabilities.

async capable(request: str, toolboxes: Set[fabricatio_tool.models.tool.ToolBox] | None, **kwargs: Unpack[fabricatio_core.models.kwargs_types.ValidateKwargs[fabricatio_judge.models.judgement.JudgeMent]]) fabricatio_judge.models.judgement.JudgeMent | None
async capable(request: List[str], toolboxes: Set[fabricatio_tool.models.tool.ToolBox] | None, **kwargs: Unpack[fabricatio_core.models.kwargs_types.ValidateKwargs[fabricatio_judge.models.judgement.JudgeMent]]) List[fabricatio_judge.models.judgement.JudgeMent | None]

Processes a capability request using the provided toolboxes and additional arguments.

Parameters:
  • request – A string or list of strings representing the input request(s).

  • toolboxes – An optional set of ToolBox objects to be used for processing the request.

  • **kwargs – Additional keyword arguments unpacked from ValidateKwargs[JudgeMent].

Returns:

The result of the capability processing, which could be None, a single judgment, or a list of judgments (or Nones) depending on the input and processing outcome.