steamship.agents.tools package#
Subpackages#
- steamship.agents.tools.audio_transcription package
- Submodules
- steamship.agents.tools.audio_transcription.assembly_speech_to_text_tool module
- steamship.agents.tools.audio_transcription.fetch_audio_urls_from_rss_tool module
- steamship.agents.tools.audio_transcription.whisper_speech_to_text_tool module
- Module contents
AssemblySpeechToTextTool
AssemblySpeechToTextTool.agent_description
AssemblySpeechToTextTool.blockifier_plugin_config
AssemblySpeechToTextTool.blockifier_plugin_handle
AssemblySpeechToTextTool.blockifier_plugin_instance_handle
AssemblySpeechToTextTool.cacheable
AssemblySpeechToTextTool.human_description
AssemblySpeechToTextTool.is_final
AssemblySpeechToTextTool.name
FetchAudioUrlsFromRssTool
WhisperSpeechToTextTool
WhisperSpeechToTextTool.agent_description
WhisperSpeechToTextTool.blockifier_plugin_config
WhisperSpeechToTextTool.blockifier_plugin_handle
WhisperSpeechToTextTool.blockifier_plugin_instance_handle
WhisperSpeechToTextTool.cacheable
WhisperSpeechToTextTool.human_description
WhisperSpeechToTextTool.is_final
WhisperSpeechToTextTool.name
- steamship.agents.tools.classification package
- Submodules
- steamship.agents.tools.classification.multiple_choice_tool module
- steamship.agents.tools.classification.sentiment_analysis_tool module
- steamship.agents.tools.classification.zero_shot_classifier_tool module
- Module contents
- steamship.agents.tools.conversation_starters package
- steamship.agents.tools.image_generation package
- Submodules
- steamship.agents.tools.image_generation.dalle module
- steamship.agents.tools.image_generation.google_image_search module
- steamship.agents.tools.image_generation.stable_diffusion module
- Module contents
DalleTool
GoogleImageSearchTool
GoogleImageSearchTool.agent_description
GoogleImageSearchTool.cacheable
GoogleImageSearchTool.generator_plugin_config
GoogleImageSearchTool.generator_plugin_handle
GoogleImageSearchTool.generator_plugin_instance_handle
GoogleImageSearchTool.human_description
GoogleImageSearchTool.is_final
GoogleImageSearchTool.make_output_public
GoogleImageSearchTool.merge_blocks
GoogleImageSearchTool.name
StableDiffusionTool
StableDiffusionTool.agent_description
StableDiffusionTool.cacheable
StableDiffusionTool.generator_plugin_config
StableDiffusionTool.generator_plugin_handle
StableDiffusionTool.generator_plugin_instance_handle
StableDiffusionTool.human_description
StableDiffusionTool.is_final
StableDiffusionTool.make_output_public
StableDiffusionTool.merge_blocks
StableDiffusionTool.name
- steamship.agents.tools.question_answering package
- Submodules
- steamship.agents.tools.question_answering.prompt_database_question_answerer module
- steamship.agents.tools.question_answering.vector_search_learner_tool module
- steamship.agents.tools.question_answering.vector_search_qa_tool module
- steamship.agents.tools.question_answering.vector_search_tool module
- Module contents
PromptDatabaseQATool
VectorSearchLearnerTool
VectorSearchLearnerTool.agent_description
VectorSearchLearnerTool.cacheable
VectorSearchLearnerTool.embedding_index_config
VectorSearchLearnerTool.embedding_index_handle
VectorSearchLearnerTool.embedding_index_instance_handle
VectorSearchLearnerTool.embedding_index_version
VectorSearchLearnerTool.human_description
VectorSearchLearnerTool.is_final
VectorSearchLearnerTool.learn_sentence()
VectorSearchLearnerTool.name
VectorSearchLearnerTool.run()
VectorSearchQATool
VectorSearchQATool.agent_description
VectorSearchQATool.answer_question()
VectorSearchQATool.cacheable
VectorSearchQATool.embedding_index_config
VectorSearchQATool.embedding_index_handle
VectorSearchQATool.embedding_index_instance_handle
VectorSearchQATool.embedding_index_version
VectorSearchQATool.human_description
VectorSearchQATool.is_final
VectorSearchQATool.load_docs_count
VectorSearchQATool.name
VectorSearchQATool.question_answering_prompt
VectorSearchQATool.run()
VectorSearchQATool.source_document_prompt
- steamship.agents.tools.search package
- steamship.agents.tools.speech_generation package
- Submodules
- steamship.agents.tools.speech_generation.generate_speech module
- Module contents
GenerateSpeechTool
GenerateSpeechTool.agent_description
GenerateSpeechTool.cacheable
GenerateSpeechTool.generator_plugin_config
GenerateSpeechTool.generator_plugin_handle
GenerateSpeechTool.generator_plugin_instance_handle
GenerateSpeechTool.human_description
GenerateSpeechTool.is_final
GenerateSpeechTool.make_output_public
GenerateSpeechTool.merge_blocks
GenerateSpeechTool.name
- steamship.agents.tools.text_generation package
- Submodules
- steamship.agents.tools.text_generation.custom_llm_prompt module
- steamship.agents.tools.text_generation.image_prompt_generator_tool module
- steamship.agents.tools.text_generation.json_object_generator module
JsonObjectGeneratorTool
JsonObjectGeneratorTool.agent_description
JsonObjectGeneratorTool.example_rows
JsonObjectGeneratorTool.human_description
JsonObjectGeneratorTool.kv_clause()
JsonObjectGeneratorTool.name
JsonObjectGeneratorTool.new_row_prefix_fields
JsonObjectGeneratorTool.object_json()
JsonObjectGeneratorTool.object_keys
JsonObjectGeneratorTool.plural_object_description
JsonObjectGeneratorTool.rewrite_prompt
JsonObjectGeneratorTool.run()
JsonObjectGeneratorTool.shuffle_example_rows
JsonObjectGeneratorTool.validate_output_as_json
- steamship.agents.tools.text_generation.personality_tool module
- steamship.agents.tools.text_generation.summarize_text_with_prompt_tool module
- steamship.agents.tools.text_generation.text_rewrite_tool module
- steamship.agents.tools.text_generation.text_translation_tool module
- Module contents
ImagePromptGeneratorTool
JsonObjectGeneratorTool
JsonObjectGeneratorTool.agent_description
JsonObjectGeneratorTool.cacheable
JsonObjectGeneratorTool.example_rows
JsonObjectGeneratorTool.human_description
JsonObjectGeneratorTool.is_final
JsonObjectGeneratorTool.kv_clause()
JsonObjectGeneratorTool.name
JsonObjectGeneratorTool.new_row_prefix_fields
JsonObjectGeneratorTool.object_json()
JsonObjectGeneratorTool.object_keys
JsonObjectGeneratorTool.plural_object_description
JsonObjectGeneratorTool.rewrite_prompt
JsonObjectGeneratorTool.run()
JsonObjectGeneratorTool.shuffle_example_rows
JsonObjectGeneratorTool.validate_output_as_json
PersonalityTool
SummarizeTextWithPromptTool
TextRewritingTool
TextTranslationTool
- steamship.agents.tools.video_generation package
- Submodules
- steamship.agents.tools.video_generation.did_video_generator_tool module
DIDVideoGeneratorTool
DIDVideoGeneratorTool.Expression
DIDVideoGeneratorTool.driver_url
DIDVideoGeneratorTool.expressions
DIDVideoGeneratorTool.generator_plugin_config
DIDVideoGeneratorTool.generator_plugin_handle
DIDVideoGeneratorTool.human_description
DIDVideoGeneratorTool.name
DIDVideoGeneratorTool.run()
DIDVideoGeneratorTool.source_url
DIDVideoGeneratorTool.stitch
DIDVideoGeneratorTool.transition_frames
DIDVideoGeneratorTool.voice_id
DIDVideoGeneratorTool.voice_provider
DIDVideoGeneratorTool.voice_style
- Module contents
DIDVideoGeneratorTool
DIDVideoGeneratorTool.Expression
DIDVideoGeneratorTool.agent_description
DIDVideoGeneratorTool.cacheable
DIDVideoGeneratorTool.driver_url
DIDVideoGeneratorTool.expressions
DIDVideoGeneratorTool.generator_plugin_config
DIDVideoGeneratorTool.generator_plugin_handle
DIDVideoGeneratorTool.generator_plugin_instance_handle
DIDVideoGeneratorTool.human_description
DIDVideoGeneratorTool.is_final
DIDVideoGeneratorTool.make_output_public
DIDVideoGeneratorTool.merge_blocks
DIDVideoGeneratorTool.name
DIDVideoGeneratorTool.run()
DIDVideoGeneratorTool.source_url
DIDVideoGeneratorTool.stitch
DIDVideoGeneratorTool.transition_frames
DIDVideoGeneratorTool.voice_id
DIDVideoGeneratorTool.voice_provider
DIDVideoGeneratorTool.voice_style
Submodules#
steamship.agents.tools.base_tools module#
- class steamship.agents.tools.base_tools.AudioBlockifierTool(*, name: str, agent_description: str, human_description: str, is_final: bool = False, cacheable: bool = True, blockifier_plugin_handle: str, blockifier_plugin_instance_handle: str | None = None, blockifier_plugin_config: dict = {})[source]#
Bases:
ScrapeAndBlockifyTool
A base class for tools that wrap Steamship Audio Blockifier plugins.
- class steamship.agents.tools.base_tools.AudioGeneratorTool(*, name: str, agent_description: str, human_description: str, is_final: bool = False, cacheable: bool = True, generator_plugin_handle: str, generator_plugin_instance_handle: str | None = None, generator_plugin_config: dict = {}, merge_blocks: bool = False, make_output_public: bool = True)[source]#
Bases:
GeneratorTool
A base class for tools that wrap Steamship Audio Generator plugins.
- class steamship.agents.tools.base_tools.GeneratorTool(*, name: str, agent_description: str, human_description: str, is_final: bool = False, cacheable: bool = True, generator_plugin_handle: str, generator_plugin_instance_handle: str | None = None, generator_plugin_config: dict = {}, merge_blocks: bool = False, make_output_public: bool = False)[source]#
Bases:
Tool
A base class for tools that wrap Steamship Generator plugins. Subclass this and implement the accept_output_block method.
- post_process(task: Task, context: AgentContext) List[Block] [source]#
In this case, the Generator returns a GeneratorResponse that has a .blocks method on it
- run(tool_input: List[Block], context: AgentContext) List[Block] | Task[Any] [source]#
Run the tool given the provided input and context.
At the moment, only synchronous Tools (those that return List[Block]) are supported.
Support for asynchronous Tools (those that return Task[Any]) will be added shortly.
- class steamship.agents.tools.base_tools.ImageBlockifierTool(*, name: str, agent_description: str, human_description: str, is_final: bool = False, cacheable: bool = True, blockifier_plugin_handle: str, blockifier_plugin_instance_handle: str | None = None, blockifier_plugin_config: dict = {})[source]#
Bases:
ScrapeAndBlockifyTool
A base class for tools that wrap Steamship Image Blockifier plugins.
- class steamship.agents.tools.base_tools.ImageGeneratorTool(*, name: str, agent_description: str, human_description: str, is_final: bool = False, cacheable: bool = True, generator_plugin_handle: str, generator_plugin_instance_handle: str | None = None, generator_plugin_config: dict = {}, merge_blocks: bool = False, make_output_public: bool = True)[source]#
Bases:
GeneratorTool
A base class for tools that wrap Steamship Image Generator plugins.
- class steamship.agents.tools.base_tools.ScrapeAndBlockifyTool(*, name: str, agent_description: str, human_description: str, is_final: bool = False, cacheable: bool = True, blockifier_plugin_handle: str, blockifier_plugin_instance_handle: str | None = None, blockifier_plugin_config: dict = {})[source]#
Bases:
Tool
A base class for tools that wrap Steamship Blockifier plugin which transforms bytes to a set of blocks.
- post_process(task: Task, context: AgentContext) List[Block] [source]#
In this case, the Blockifier returns a BlockAndTagResponse that has a .file.blocks method on it
- run(tool_input: List[Block], context: AgentContext) List[Block] | Task[Any] [source]#
Run the tool given the provided input and context.
At the moment, only synchronous Tools (those that return List[Block]) are supported.
Support for asynchronous Tools (those that return Task[Any]) will be added shortly.
- class steamship.agents.tools.base_tools.VideoGeneratorTool(*, name: str, agent_description: str, human_description: str, is_final: bool = False, cacheable: bool = True, generator_plugin_handle: str, generator_plugin_instance_handle: str | None = None, generator_plugin_config: dict = {}, merge_blocks: bool = False, make_output_public: bool = True)[source]#
Bases:
GeneratorTool
A base class for tools that wrap Steamship Video Generator plugins.
Module contents#
- class steamship.agents.tools.AudioBlockifierTool(*, name: str, agent_description: str, human_description: str, is_final: bool = False, cacheable: bool = True, blockifier_plugin_handle: str, blockifier_plugin_instance_handle: str | None = None, blockifier_plugin_config: dict = {})[source]#
Bases:
ScrapeAndBlockifyTool
A base class for tools that wrap Steamship Audio Blockifier plugins.
- class steamship.agents.tools.AudioGeneratorTool(*, name: str, agent_description: str, human_description: str, is_final: bool = False, cacheable: bool = True, generator_plugin_handle: str, generator_plugin_instance_handle: str | None = None, generator_plugin_config: dict = {}, merge_blocks: bool = False, make_output_public: bool = True)[source]#
Bases:
GeneratorTool
A base class for tools that wrap Steamship Audio Generator plugins.
- 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.
- class steamship.agents.tools.GeneratorTool(*, name: str, agent_description: str, human_description: str, is_final: bool = False, cacheable: bool = True, generator_plugin_handle: str, generator_plugin_instance_handle: str | None = None, generator_plugin_config: dict = {}, merge_blocks: bool = False, make_output_public: bool = False)[source]#
Bases:
Tool
A base class for tools that wrap Steamship Generator plugins. Subclass this and implement the accept_output_block method.
- 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.
- 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.
- post_process(task: Task, context: AgentContext) List[Block] [source]#
In this case, the Generator returns a GeneratorResponse that has a .blocks method on it
- run(tool_input: List[Block], context: AgentContext) List[Block] | Task[Any] [source]#
Run the tool given the provided input and context.
At the moment, only synchronous Tools (those that return List[Block]) are supported.
Support for asynchronous Tools (those that return Task[Any]) will be added shortly.
- class steamship.agents.tools.ImageBlockifierTool(*, name: str, agent_description: str, human_description: str, is_final: bool = False, cacheable: bool = True, blockifier_plugin_handle: str, blockifier_plugin_instance_handle: str | None = None, blockifier_plugin_config: dict = {})[source]#
Bases:
ScrapeAndBlockifyTool
A base class for tools that wrap Steamship Image Blockifier plugins.
- class steamship.agents.tools.ImageGeneratorTool(*, name: str, agent_description: str, human_description: str, is_final: bool = False, cacheable: bool = True, generator_plugin_handle: str, generator_plugin_instance_handle: str | None = None, generator_plugin_config: dict = {}, merge_blocks: bool = False, make_output_public: bool = True)[source]#
Bases:
GeneratorTool
A base class for tools that wrap Steamship Image Generator plugins.
- 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.
- class steamship.agents.tools.ScrapeAndBlockifyTool(*, name: str, agent_description: str, human_description: str, is_final: bool = False, cacheable: bool = True, blockifier_plugin_handle: str, blockifier_plugin_instance_handle: str | None = None, blockifier_plugin_config: dict = {})[source]#
Bases:
Tool
A base class for tools that wrap Steamship Blockifier plugin which transforms bytes to a set of blocks.
- 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.
- 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.
- post_process(task: Task, context: AgentContext) List[Block] [source]#
In this case, the Blockifier returns a BlockAndTagResponse that has a .file.blocks method on it
- run(tool_input: List[Block], context: AgentContext) List[Block] | Task[Any] [source]#
Run the tool given the provided input and context.
At the moment, only synchronous Tools (those that return List[Block]) are supported.
Support for asynchronous Tools (those that return Task[Any]) will be added shortly.
- class steamship.agents.tools.VideoGeneratorTool(*, name: str, agent_description: str, human_description: str, is_final: bool = False, cacheable: bool = True, generator_plugin_handle: str, generator_plugin_instance_handle: str | None = None, generator_plugin_config: dict = {}, merge_blocks: bool = False, make_output_public: bool = True)[source]#
Bases:
GeneratorTool
A base class for tools that wrap Steamship Video Generator plugins.
- 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.