Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Momuno/skill assistant document skill work #110

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion assistants/skill-assistant/assistant/skill_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import openai_client
from chat_driver import ChatDriverConfig
from events import events as skill_events
from document_skill import DocumentSkill

from posix_skill import PosixSkill
from semantic_workbench_api_model.workbench_model import (
MessageType,
Expand Down Expand Up @@ -160,7 +162,11 @@ async def create_assistant(
),
)

document_skill = DocumentSkill(
context=assistant.context,
)

# Register the skills with the assistant.
assistant.register_skills([posix_skill])
assistant.register_skills([posix_skill, document_skill])

return assistant
2 changes: 2 additions & 0 deletions assistants/skill-assistant/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dependencies = [
"semantic-workbench-assistant>=0.1.0",
"content-safety>=0.1.0",
"posix-skill>=0.1.0",
"document-skill>=0.1.0",
"openai-client>=0.1.0",
]

Expand All @@ -25,6 +26,7 @@ dev-dependencies = ["pytest>=8.3.1", "pytest-asyncio>=0.23.8"]
semantic-workbench-assistant = { path = "../../libraries/python/semantic-workbench-assistant", editable = true }
content-safety = { path = "../../libraries/python/content-safety", editable = true }
posix-skill = { path = "../../libraries/python/skills/skills/posix-skill", editable = true }
document-skill = { path = "../../libraries/python/skills/skills/document-skill", editable = true }
openai-client = { path = "../../libraries/python/openai-client", editable = true }

[build-system]
Expand Down
28 changes: 28 additions & 0 deletions assistants/skill-assistant/uv.lock

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

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from document_skill.document_skill import Attachment, DocumentContext # temp for dev testing purposes
from document_skill.document_skill import Attachment, DocumentSkillContext
from document_skill.document_skill import DocumentSkill


__all__ = [
"Attachment",
"DocumentContext",
"DocumentSkillContext",
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI, this skill is being used in Prospector as well now, so changes like this will need to be updated there too.

"DocumentSkill",
]
Loading