-
Notifications
You must be signed in to change notification settings - Fork 362
feat: refactor agent skills and support OpenAI Agents SDK #1100
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
Open
supreme-gg-gg
wants to merge
23
commits into
kagent-dev:main
Choose a base branch
from
supreme-gg-gg:feat/openai-agents
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,391
−816
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
60bfaa2
feat: add skeleton of openai-agent skills
EItanya 1b8d662
refactor kagent skills with basic tests
supreme-gg-gg 5ad4153
cleanup some kagent openai
supreme-gg-gg ec8d961
use kagent skills in adk
supreme-gg-gg 580b542
create session tmp working dir in openai executor
supreme-gg-gg 522a7ec
fixes to kagent openai
supreme-gg-gg 100a541
minor fixes to other packages
supreme-gg-gg f19d0ba
e2e test for openai
supreme-gg-gg bfee60a
refactor kagent adk
supreme-gg-gg 2664571
improvements to python path and path
supreme-gg-gg 12111f0
update openai sdk
supreme-gg-gg 76f9714
fix openai sample and add to makefile
supreme-gg-gg b26ac94
restore files from main
supreme-gg-gg 98ad2e0
fix ci
supreme-gg-gg 7b73ecb
update dockerfile to initialize new venv with pip
supreme-gg-gg 4397d32
remove pip from bash venv
supreme-gg-gg a819c66
fix e2e and lint
supreme-gg-gg bf2e044
python lint
supreme-gg-gg 08ff646
fix merge conflicts
supreme-gg-gg 8bf35ff
fixes
supreme-gg-gg 1029d63
fix kebab agent issue
supreme-gg-gg 731e51e
configure mockllm base url in openai sdk
supreme-gg-gg 23748e0
make tracing work and fix deps
supreme-gg-gg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,130 @@ | ||
| { | ||
| "openai": [ | ||
| { | ||
| "name": "calculate_request", | ||
| "match": { | ||
| "match_type": "contains", | ||
| "message": { | ||
| "content": "What is 2+2?", | ||
| "role": "user" | ||
| } | ||
| }, | ||
| "response": { | ||
| "id": "chatcmpl-calc", | ||
| "object": "chat.completion", | ||
| "created": 1677652288, | ||
| "model": "gpt-4.1-mini", | ||
| "choices": [ | ||
| { | ||
| "index": 0, | ||
| "message": { | ||
| "role": "assistant", | ||
| "content": null, | ||
| "tool_calls": [ | ||
| { | ||
| "id": "call_abc123", | ||
| "type": "function", | ||
| "function": { | ||
| "name": "calculate", | ||
| "arguments": "{\"expression\": \"2+2\"}" | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| "finish_reason": "tool_calls" | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "name": "calculate_result", | ||
| "match": { | ||
| "match_type": "contains", | ||
| "message": { | ||
| "content": "4", | ||
| "role": "tool", | ||
| "tool_call_id": "call_abc123" | ||
| } | ||
| }, | ||
| "response": { | ||
| "id": "chatcmpl-calc-result", | ||
| "object": "chat.completion", | ||
| "created": 1677652288, | ||
| "model": "gpt-4.1-mini", | ||
| "choices": [ | ||
| { | ||
| "index": 0, | ||
| "message": { | ||
| "role": "assistant", | ||
| "content": "The result of 2+2 is 4" | ||
| }, | ||
| "finish_reason": "stop" | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "name": "weather_request", | ||
| "match": { | ||
| "match_type": "contains", | ||
| "message": { | ||
| "content": "What is the weather in London?", | ||
| "role": "user" | ||
| } | ||
| }, | ||
| "response": { | ||
| "id": "chatcmpl-weather", | ||
| "object": "chat.completion", | ||
| "created": 1677652289, | ||
| "model": "gpt-4.1-mini", | ||
| "choices": [ | ||
| { | ||
| "index": 0, | ||
| "message": { | ||
| "role": "assistant", | ||
| "content": null, | ||
| "tool_calls": [ | ||
| { | ||
| "id": "call_def456", | ||
| "type": "function", | ||
| "function": { | ||
| "name": "get_weather", | ||
| "arguments": "{\"location\": \"London\"}" | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| "finish_reason": "tool_calls" | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "name": "weather_result", | ||
| "match": { | ||
| "match_type": "contains", | ||
| "message": { | ||
| "content": "Rainy, 52°F", | ||
| "role": "tool", | ||
| "tool_call_id": "call_def456" | ||
| } | ||
| }, | ||
| "response": { | ||
| "id": "chatcmpl-weather-result", | ||
| "object": "chat.completion", | ||
| "created": 1677652289, | ||
| "model": "gpt-4.1-mini", | ||
| "choices": [ | ||
| { | ||
| "index": 0, | ||
| "message": { | ||
| "role": "assistant", | ||
| "content": "The weather in London is Rainy, 52°F" | ||
| }, | ||
| "finish_reason": "stop" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| ] | ||
| } |
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
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
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.