steamship.agents.tools.video_generation package#
Submodules#
steamship.agents.tools.video_generation.did_video_generator_tool module#
Tool for generating images.
- class steamship.agents.tools.video_generation.did_video_generator_tool.DIDVideoGeneratorTool(*, name: str = 'DIDVideoGeneratorTool', agent_description: str = 'Used to generate a video of you from text. Use if the user has asked for a video response. The input is the text that you want to say. The output is the video of you saying it.', human_description: str = 'Generates an a video of you speaking a response to a user.', is_final: bool = False, cacheable: bool = True, generator_plugin_handle: str = 'did-video-generator', generator_plugin_instance_handle: str | None = None, generator_plugin_config: dict = {}, merge_blocks: bool = False, make_output_public: bool = True, source_url: str | None = 'https://www.steamship.com/images/agents/man-in-suit-midjourney.png', stitch: bool = True, voice_provider: str | None = 'microsoft', voice_id: str | None = 'en-US-GuyNeural', voice_style: str | None = 'Default', driver_url: str | None = None, expressions: List[Expression] | None = None, transition_frames: int | None = 20)[source]#
Bases:
VideoGeneratorTool
Tool to generate talking avatars from text using D-ID.
- class Expression(*, start_frame: ConstrainedIntValue, expression: Expressions, intensity: ConstrainedFloatValue = 1.0)[source]#
Bases:
BaseModel
- class Expressions(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
-
- HAPPY = 'happy'#
- NEUTRAL = 'neutral'#
- SERIOUS = 'serious'#
- SURPRISE = 'surprise'#
- expression: Expressions#
- driver_url: str | None#
The URL of the D-ID driver video. If not provided a driver video will be selected automatically.
- expressions: List[Expression] | None#
A list of expressions to apply.
- name: str#
The short name for the tool. This will be used by Agents to refer to this tool during action selection.
Module contents#
- class steamship.agents.tools.video_generation.DIDVideoGeneratorTool(*, name: str = 'DIDVideoGeneratorTool', agent_description: str = 'Used to generate a video of you from text. Use if the user has asked for a video response. The input is the text that you want to say. The output is the video of you saying it.', human_description: str = 'Generates an a video of you speaking a response to a user.', is_final: bool = False, cacheable: bool = True, generator_plugin_handle: str = 'did-video-generator', generator_plugin_instance_handle: str | None = None, generator_plugin_config: dict = {}, merge_blocks: bool = False, make_output_public: bool = True, source_url: str | None = 'https://www.steamship.com/images/agents/man-in-suit-midjourney.png', stitch: bool = True, voice_provider: str | None = 'microsoft', voice_id: str | None = 'en-US-GuyNeural', voice_style: str | None = 'Default', driver_url: str | None = None, expressions: List[Expression] | None = None, transition_frames: int | None = 20)[source]#
Bases:
VideoGeneratorTool
Tool to generate talking avatars from text using D-ID.
- class Expression(*, start_frame: ConstrainedIntValue, expression: Expressions, intensity: ConstrainedFloatValue = 1.0)[source]#
Bases:
BaseModel
- class Expressions(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
-
- HAPPY = 'happy'#
- NEUTRAL = 'neutral'#
- SERIOUS = 'serious'#
- SURPRISE = 'surprise'#
- expression: Expressions#
- agent_description: str#
Description for use in an agent in order to enable Action selection. It should include a short summary of what the Tool does, what the inputs to the Tool should be, and what the outputs of the tool are.
- cacheable: bool#
Whether runs of this Tool should be cached based on inputs (if caching is enabled in the AgentContext for a run). Setting this to False will make prevent any Actions that involve this tool from being cached, meaning that every Action using this Tool will result in a call to run. By default, Tools are considered cacheable.
- driver_url: str | None#
The URL of the D-ID driver video. If not provided a driver video will be selected automatically.
- expressions: List[Expression] | None#
A list of expressions to apply.
- is_final: bool#
Whether actions performed by this tool should have their is_final bit marked.
Setting this to True means that the output of this tool will halt the reasoning loop. Its output will be returned directly to the user.
- name: str#
The short name for the tool. This will be used by Agents to refer to this tool during action selection.