Skip to content

Commit

Permalink
Removes ChatDriver library. Adds to openai-client.
Browse files Browse the repository at this point in the history
  • Loading branch information
payneio committed Nov 12, 2024
1 parent 2c1160a commit ac90828
Show file tree
Hide file tree
Showing 71 changed files with 414 additions and 2,390 deletions.
2 changes: 2 additions & 0 deletions assistants/explorer-assistant/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions assistants/guided-conversation-assistant/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 11 additions & 13 deletions assistants/prospector-assistant/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,33 @@ authors = [{ name = "Semantic Workbench Team" }]
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"assistant-extensions[attachments]>=0.1.0",
"content-safety>=0.1.0",
"deepmerge>=2.0",
"document-skill>=0.1.0",
"guided-conversation>=0.1.0",
"html2docx>=1.6.0",
"markdown>=3.6",
"openai-client>=0.1.0",
"openai>=1.3.9",
"content-safety>=0.1.0",
"chat-driver>=0.1.0",
"skill-library>=0.1.0",
"posix-skill>=0.1.0",
"prospector-skill>=0.1.0",
"document-skill>=0.1.0",
"guided-conversation>=0.1.0",
"openai-client>=0.1.0",
"assistant-extensions[attachments]>=0.1.0",
"skill-library>=0.1.0",
]

[tool.uv]
package = true

[tool.uv.sources]
assistant-drive = { path = "../../libraries/python/assistant-drive", editable = true }
assistant-extensions = { path = "../../libraries/python/assistant-extensions", editable = true }
content-safety = { path = "../../libraries/python/content-safety/", editable = true }
document-skill = { path = "../../libraries/python/skills/skills/document-skill", editable = true }
guided-conversation = { path = "../../libraries/python/guided-conversation", editable = true }
chat-driver = { path = "../../libraries/python/chat-driver", editable = true }
skill-library = { path = "../../libraries/python/skills/skill-library", editable = true }
openai-client = { path = "../../libraries/python/openai-client", editable = true }
posix-skill = { path = "../../libraries/python/skills/skills/posix-skill", editable = true }
prospector-skill = { path = "../../libraries/python/skills/skills/prospector-skill", editable = true }
document-skill = { path = "../../libraries/python/skills/skills/document-skill", editable = true }
openai-client = { path = "../../libraries/python/openai-client", editable = true }
assistant-drive = { path = "../../libraries/python/assistant-drive", editable = true }
assistant-extensions = { path = "../../libraries/python/assistant-extensions", editable = true }
skill-library = { path = "../../libraries/python/skills/skill-library", editable = true }

[build-system]
requires = ["hatchling"]
Expand Down
51 changes: 10 additions & 41 deletions assistants/prospector-assistant/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assistants/skill-assistant/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Skill Assistant

The Skill Assistant serves as a demonstration of integrating the Skill Library within an Assistant in the Semantic Workbench. Specifically, this assistant showcases the Posix skill and the chat driver. The [Posix skill](../../libraries/python/skills/skills/posix-skill/README.md) demonstrates file system management by allowing the assistant to perform posix-style actions. The [chat driver](../../libraries/python/chat-driver/README.md) handles conversations and interacts with underlying AI models like OpenAI and Azure OpenAI.
The Skill Assistant serves as a demonstration of integrating the Skill Library within an Assistant in the Semantic Workbench. Specifically, this assistant showcases the Posix skill and the chat driver. The [Posix skill](../../libraries/python/skills/skills/posix-skill/README.md) demonstrates file system management by allowing the assistant to perform posix-style actions. The [chat driver](../../libraries/python/openai-client/openai_client/chat_driver/README.md) handles conversations and interacts with underlying AI models like OpenAI and Azure OpenAI.

## Overview

Expand Down
2 changes: 1 addition & 1 deletion assistants/skill-assistant/assistant/assistant_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from pathlib import Path
from typing import List

from chat_driver import ChatDriverConfig
from openai_client.chat_driver import ChatDriverConfig
from skill_library import Assistant, Skill

from assistant.skill_event_mapper import SkillEventMapperProtocol
Expand Down
11 changes: 10 additions & 1 deletion assistants/skill-assistant/assistant/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ class ChatDriverConfig(BaseModel):
] = "gpt-4o"


# the workbench app builds dynamic forms based on the configuration model and UI schema
# The workbench app builds dynamic forms based on the configuration model and UI
# schema.
class AssistantConfigModel(BaseModel):
guardrails_prompt: Annotated[
str,
Expand Down Expand Up @@ -129,6 +130,14 @@ class AssistantConfigModel(BaseModel):
UISchema(widget="radio"),
] = CombinedContentSafetyEvaluatorConfig()

metadata_path: Annotated[
str,
Field(
title="Metadata Path",
description="The path for assistant metadata.",
),
] = ".data"

# add any additional configuration fields


Expand Down
2 changes: 1 addition & 1 deletion assistants/skill-assistant/assistant/skill_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from pathlib import Path

import openai_client
from chat_driver import ChatDriverConfig
from content_safety.evaluators import CombinedContentSafetyEvaluator
from openai_client.chat_driver import ChatDriverConfig

# from form_filler_skill import FormFillerSkill
from posix_skill import PosixSkill
Expand Down
Loading

0 comments on commit ac90828

Please sign in to comment.