This repository was archived by the owner on Oct 1, 2026. It is now read-only.
Repository navigation
Add save_skill client function call - #63
Merged
Merged
Conversation
ruff 0.16 (installed unpinned in CI) now formats Python code blocks inside Markdown files. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KocxNUyBQT8K8qTduX7Gyu
Adds "save_skill" to the FunctionCallSSEData.function Literal so agents can ask the OpenBB Workspace client to save the current conversation's workflow as a reusable skill in the user's skill library. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KocxNUyBQT8K8qTduX7Gyu
DidierRLopes
force-pushed
the
feat/add-skill-with-ai
branch
from
August 2, 2026 22:13
63cd43e to
74dd77c
Compare
andrewkenreich
approved these changes
Aug 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the cross-repo "save this as a skill" feature: users can ask the copilot to save the current conversation's workflow as a reusable skill in their Workspace skill library.
What this PR does
"save_skill"to the closedFunctionCallSSEData.functionLiteral inopenbb_ai/models.py, allowing agents to emit acopilotFunctionCallSSE that asks the Workspace client to save a skill. This follows the exact precedent ofget_skill_content(Skills model #52).Protocol flow enabled by this change
FunctionCallSSE(function="save_skill", input_arguments={"name", "instructions"})and closes the stream./querywith anLlmClientFunctionCallResultMessagecarrying aClientCommandResult({"skill": {"slug", "description"}}on success).PR #61 (durable conversation summaries) also bumps to 2.2.0. Whichever of the two merges second must bump to 2.3.0 before release.
Companion PRs — review/test together
This PR only extends the protocol; the behavior lives in the companion PRs and needs all three to test end-to-end:
Release ordering: merge + publish this package to PyPI first (ada's
^2.1.0caret accepts 2.2.0, but ada CI/Docker installs from PyPI, so the ada PR's new Literal value fails validation until 2.2.0 is published) → then openbb-ada → terminalpro can go before or alongside ada.🤖 Generated with Claude Code
https://claude.ai/code/session_01KocxNUyBQT8K8qTduX7Gyu