steamship.agents package#
Subpackages#
- steamship.agents.examples package
- steamship.agents.llms package
- steamship.agents.memory package
- Submodules
- steamship.agents.memory.chathistory module
ChatHistory
ChatHistory.append_agent_message()
ChatHistory.append_system_message()
ChatHistory.append_user_message()
ChatHistory.client
ChatHistory.file
ChatHistory.get_or_create()
ChatHistory.initial_system_prompt
ChatHistory.last_agent_message
ChatHistory.last_system_message
ChatHistory.last_user_message
ChatHistory.messages
ChatHistory.refresh()
ChatHistory.tags
- Module contents
ChatHistory
ChatHistory.append_agent_message()
ChatHistory.append_system_message()
ChatHistory.append_user_message()
ChatHistory.client
ChatHistory.file
ChatHistory.get_or_create()
ChatHistory.initial_system_prompt
ChatHistory.last_agent_message
ChatHistory.last_system_message
ChatHistory.last_user_message
ChatHistory.messages
ChatHistory.refresh()
ChatHistory.tags
- steamship.agents.react package
- steamship.agents.schema package
- Submodules
- steamship.agents.schema.action module
- steamship.agents.schema.agent module
- steamship.agents.schema.context module
- steamship.agents.schema.llm module
- steamship.agents.schema.output_parser module
- steamship.agents.schema.tool module
- Module contents
- steamship.agents.service package
- steamship.agents.tools package
- Subpackages
- steamship.agents.tools.audio_transcription package
- steamship.agents.tools.classification package
- steamship.agents.tools.conversation_starters package
- steamship.agents.tools.image_generation package
- steamship.agents.tools.question_answering package
- steamship.agents.tools.search package
- steamship.agents.tools.speech_generation package
- steamship.agents.tools.text_generation package
- Submodules
- steamship.agents.tools.text_generation.image_prompt_generator_tool module
- steamship.agents.tools.text_generation.json_object_generator module
- 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
- Submodules
- steamship.agents.tools.base_tools module
- Module contents
AudioBlockifierTool
AudioGeneratorTool
GeneratorTool
GeneratorTool.accept_output_block()
GeneratorTool.agent_description
GeneratorTool.generator_plugin_config
GeneratorTool.generator_plugin_handle
GeneratorTool.generator_plugin_instance_handle
GeneratorTool.human_description
GeneratorTool.merge_blocks
GeneratorTool.name
GeneratorTool.post_process()
GeneratorTool.run()
ImageBlockifierTool
ImageGeneratorTool
ScrapeAndBlockifyTool
ScrapeAndBlockifyTool.agent_description
ScrapeAndBlockifyTool.blockifier_plugin_config
ScrapeAndBlockifyTool.blockifier_plugin_handle
ScrapeAndBlockifyTool.blockifier_plugin_instance_handle
ScrapeAndBlockifyTool.get_mime_type()
ScrapeAndBlockifyTool.human_description
ScrapeAndBlockifyTool.name
ScrapeAndBlockifyTool.post_process()
ScrapeAndBlockifyTool.run()
ScrapeAndBlockifyTool.should_blockify()
- Subpackages
Submodules#
steamship.agents.logging module#
- class steamship.agents.logging.AgentLogging[source]#
Bases:
object
These keys are for use in the extra field of agent logging operations. #noqa: RST203
For now, they are manually applied at the time of logging. In the future, the AgentContext may provide a logger which fills some automatically.
For example:
- logging.info(“I should use tool MakeAPicture”, extra={
AgentLogging.AGENT_NAME: self.name, AgentLogging.IS_AGENT_MESSAGE: True, AgentLogging.MESSAGE_TYPE: AgentLogging.THOUGHT
}) # noqa: RST203
This provides:
Structured additions to Fluent/Elastic that help with internal debugging.
Helpful output in development mode
[Eventual] User-visible logs
[Eventual] Visualiations about tool execution and ReAct reasoning
- ACTION = 'action'#
- AGENT = 'agent'#
- AGENT_NAME = 'agent_name'#
- IS_MESSAGE = 'is_message'#
- MESSAGE = 'message'#
- MESSAGE_AUTHOR = 'message_author'#
- MESSAGE_TYPE = 'agent_message_type'#
- OBSERVATION = 'observation'#
- SYSTEM = 'system'#
- THOUGHT = 'thought'#
- TOOL = 'tool'#
- TOOL_NAME = 'tool_name'#
- USER = 'user'#
steamship.agents.utils module#
- steamship.agents.utils.get_llm(context: AgentContext) Optional[LLM] [source]#
Retrieves the LLM from the provided AgentContext (if it exists).
- steamship.agents.utils.with_llm(llm: LLM, context: Optional[AgentContext] = None) AgentContext [source]#
Sets an LLM for general purpose lookup and usage on an AgentContext.