L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Productivité · SKILL.md

agents-and-specifications

agents-and-specifications

Use Tensorforce Agent.create, Agent.load, algorithm aliases, state/action specifications, action masking, and low-level act/observe or experience/update APIs.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: agents-and-specifications description: "Use Tensorforce Agent.create, Agent.load, algorithm aliases, state/action specifications, action masking, and low-level act/observe or experience/update APIs." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Tensorforce Agents and Specifications

Use this sub-skill when a task asks how to construct or load a Tensorforce agent, choose an algorithm alias, write state/action specifications, pass action masks, or drive an agent without Runner through act, observe, experience, and update.

Route by task

Key operating rules

  1. Prefer Agent.create(..., environment=environment) when an environment object is already available; Tensorforce then infers states, actions, and max_episode_timesteps where possible.
  2. If no environment object is available, pass explicit states, actions, and any required algorithm arguments. The primitive value spec is dict(type='bool'|'int'|'float', shape=..., num_values=..., min_value=..., max_value=...).
  3. For non-independent training, every agent.act(states=...) must be followed by exactly one agent.observe(terminal=..., reward=...) for the same parallel interaction.
  4. For evaluation, offline recording, or externally collected episodes, call agent.act(..., independent=True) and use agent.initial_internals() when recurrent/internal states are present.
  5. Action masks are auxiliary state entries, not part of states specs. For a singleton integer action, use action_mask; for a named integer action such as move, use move_mask.
  6. Always close agents and environments you created directly. If Runner owns construction/closing, route to ../runner-and-cli-workflows/.

Boundaries

This sub-skill owns agent creation/loading, algorithm alias selection, state/action specifications, action masking, and low-level interaction APIs. It intentionally excludes Runner orchestration and CLI workflows, custom environment implementation details, persistence/export/recording depth, and exhaustive module catalogs; use the sibling routes named above for those areas.

Skills enregistrées