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

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources