Shortcuts

ToolCall

class torchrl.envs.llm.transforms.ToolCall(tool: str, args: dict[str, Any], tag: str | None = None)[source]

Representation of a parsed tool call from LLM output.

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

  • args (dict[str, Any]) – Arguments to pass to the tool.

  • tag (str | None) – Optional user-visible label or correlation ID.

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