Skip to content

Tag ChatHistory blocks and files #531

Merged
eob merged 8 commits into
mainfrom
chat-history
Aug 30, 2023
Merged

Tag ChatHistory blocks and files #531
eob merged 8 commits into
mainfrom
chat-history

Conversation

@eob
Copy link
Copy Markdown
Contributor

@eob eob commented Aug 26, 2023

We don't currently Tag ChatHistory files as being ChatHistory files. That means that the Web UI can't show a list of prior chats and let the user resume or browse one.

This PR adds a tag constant for ChatHistory and tags new ChatHistory files with it when they are created.

Along for the ride on this PR

  • Remove unused code from experimental
  • Consolidate duplicated get_tag_value_key methods into a single tag_util.py file.
  • Extract build_chat_history_for_tool function from next_action to enable testing on its own and possible resuse

@eob eob requested review from GitOnUp and dkolas and removed request for dkolas August 28, 2023 17:12
dkolas
dkolas previously approved these changes Aug 30, 2023
Copy link
Copy Markdown
Contributor

@dkolas dkolas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - one suggestion for a new tag kind

Comment thread src/steamship/agents/llms/openai.py
@eob eob merged commit cbf624f into main Aug 30, 2023
@eob eob deleted the chat-history branch August 30, 2023 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants