Shortcuts

ToolService

class torchrl.envs.llm.transforms.ToolService(*args, **kwargs)[source]

Protocol for side-effecting service callable with structured IO.

A tool service is a callable that can be invoked with keyword arguments and returns a dictionary of results. It has a name and input/output schemas.

Variables:
  • name (str) – The name of the tool service.

  • schema_in (dict[str, Any]) – Input schema describing expected parameters.

  • schema_out (dict[str, Any]) – Output schema describing returned data.

Docs

Lorem ipsum dolor sit amet, consectetur

View Docs

Tutorials

Lorem ipsum dolor sit amet, consectetur

View Tutorials

Resources

Lorem ipsum dolor sit amet, consectetur

View Resources