[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf_agents.trajectories.to_transition_spec\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/trajectories/trajectory.py#L853-L875) |\n\nCreate a transition spec from a trajectory spec.\n\n#### View aliases\n\n\n**Main aliases**\n\n[`tf_agents.trajectories.trajectory.to_transition_spec`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/trajectories/to_transition_spec)\n\n\u003cbr /\u003e\n\n tf_agents.trajectories.to_transition_spec(\n trajectory_spec: ../../tf_agents/trajectories/Trajectory\n ) -\u003e ../../tf_agents/trajectories/Transition\n\n| **Note:** since trajectories do not include the policy step's state (except in special cases where the policy chooses to store this in the info field), the returned `transition.action_spec.state` field will be an empty tuple.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-------------------|------------------------------------------------------------|\n| `trajectory_spec` | An instance of `Trajectory` representing trajectory specs. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A tuple `(time_steps, policy_steps, next_time_steps)` specs. ||\n\n\u003cbr /\u003e"]]