diff --git a/.github/workflows/smoke.yaml b/.github/workflows/smoke.yaml index 59ff43a2..0b828f56 100644 --- a/.github/workflows/smoke.yaml +++ b/.github/workflows/smoke.yaml @@ -59,6 +59,35 @@ jobs: echo "run_smoke_tests=false" >> $GITHUB_OUTPUT + gpt-4o-2024-08-06: + needs: check-label + if: ${{ needs.check-label.outputs.run_smoke_tests == 'true' }} + runs-on: ubuntu-22.04 + steps: + - name: Checkout base repository + uses: actions/checkout@v4 + with: + fetch-depth: 1 + - name: Checkout PR code if running for a PR + if: ${{ github.event_name == 'pull_request_target' }} + uses: actions/checkout@v4 + with: + fetch-depth: 1 + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.event.pull_request.head.ref }} + - uses: actions/setup-go@v5 + with: + cache: false + go-version: "1.21" + - env: + OPENAI_API_KEY: ${{ secrets.SMOKE_OPENAI_API_KEY }} + GPTSCRIPT_DEFAULT_MODEL: gpt-4o-2024-08-06 + name: Run smoke test for gpt-4o-2024-08-06 + run: | + echo "Running smoke test for model gpt-4o-2024-08-06" + export PATH="$(pwd)/bin:${PATH}" + make smoke + gpt-4o-2024-05-13: needs: check-label if: ${{ needs.check-label.outputs.run_smoke_tests == 'true' }} diff --git a/pkg/tests/judge/judge.go b/pkg/tests/judge/judge.go index eae12c2e..f6581dcc 100644 --- a/pkg/tests/judge/judge.go +++ b/pkg/tests/judge/judge.go @@ -40,6 +40,8 @@ After making a determination, respond with a JSON object that conforms to the fo ] } +If you determine actual and expected are not equivalent, include a diff of the parts of actual and expected that are not equivalent in the reasoning field of your response. + Your responses are concise and include only the json object described above. ` @@ -84,10 +86,10 @@ func New[T any](client *openai.Client) (*Judge[T], error) { } func (j *Judge[T]) Equal(ctx context.Context, expected, actual T, criteria string) (equal bool, reasoning string, err error) { - comparisonJSON, err := json.MarshalIndent(&comparison[T]{ + comparisonJSON, err := json.Marshal(&comparison[T]{ Expected: expected, Actual: actual, - }, "", " ") + }) if err != nil { return false, "", fmt.Errorf("failed to marshal judge testcase JSON: %w", err) } diff --git a/pkg/tests/smoke/smoke_test.go b/pkg/tests/smoke/smoke_test.go index a6d0ab2c..b7e50b37 100644 --- a/pkg/tests/smoke/smoke_test.go +++ b/pkg/tests/smoke/smoke_test.go @@ -82,8 +82,8 @@ func TestSmoke(t *testing.T) { expectedEvents, actualEvents, ` -- disregard differences in timestamps, generated IDs, natural language verbiage, and event order -- omit callProgress events from the comparison +- disregard differences in event order, timestamps, generated IDs, and natural language verbiage, grammar, and punctuation +- compare events with matching event types - the overall stream of events and set of tools called should roughly match - arguments passed in tool calls should be roughly the same - the final callFinish event should be semantically similar @@ -175,6 +175,11 @@ func getActualEvents(t *testing.T, eventsFile string) []event { var e event require.NoError(t, json.Unmarshal([]byte(line), &e)) + + if e.Type == runner.EventTypeCallProgress { + continue + } + events = append(events, e) } diff --git a/pkg/tests/smoke/testdata/Bob/claude-3-5-sonnet-20240620-expected.json b/pkg/tests/smoke/testdata/Bob/claude-3-5-sonnet-20240620-expected.json index 63673b21..2b51085b 100644 --- a/pkg/tests/smoke/testdata/Bob/claude-3-5-sonnet-20240620-expected.json +++ b/pkg/tests/smoke/testdata/Bob/claude-3-5-sonnet-20240620-expected.json @@ -1,13 +1,13 @@ [ { - "time": "2024-07-02T19:39:41.734737-04:00", + "time": "2024-08-23T11:56:53.66449-04:00", "type": "runStart", "usage": {} }, { - "time": "2024-07-02T19:39:41.735252-04:00", + "time": "2024-08-23T11:56:53.665162-04:00", "callContext": { - "id": "1719963582", + "id": "1724428614", "tool": { "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", "internalPrompt": null, @@ -41,14 +41,14 @@ "usage": {} }, { - "time": "2024-07-02T19:39:42.643066-04:00", + "time": "2024-08-23T11:56:54.68224-04:00", "type": "runStart", "usage": {} }, { - "time": "2024-07-02T19:39:42.643356-04:00", + "time": "2024-08-23T11:56:54.682516-04:00", "callContext": { - "id": "1719963583", + "id": "1724428615", "tool": { "name": "Anthropic Claude3 Model Provider", "description": "Model provider for Anthropic hosted Claude3 models", @@ -59,30 +59,30 @@ "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env" ], "instructions": "#!sys.daemon /usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/main.py", - "id": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/6b5a88075b1e4501e845f4dab5be16ea8739aa4c/tool.gpt:Anthropic Claude3 Model Provider", + "id": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt:Anthropic Claude3 Model Provider", "toolMapping": { "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env": [ { "reference": "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env", - "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/651dfad6e7cf3a385ef408afa93ce522c10f8508/tool.gpt:token" + "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/37e5f870e195b896438c0bc35867403a42f82e89/tool.gpt:token" } ] }, "localTools": { - "anthropic claude3 model provider": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/6b5a88075b1e4501e845f4dab5be16ea8739aa4c/tool.gpt:Anthropic Claude3 Model Provider" + "anthropic claude3 model provider": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt:Anthropic Claude3 Model Provider" }, "source": { - "location": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/6b5a88075b1e4501e845f4dab5be16ea8739aa4c/tool.gpt", + "location": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt", "lineNo": 1, "repo": { "VCS": "git", "Root": "https://github.com/gptscript-ai/claude3-anthropic-provider.git", "Path": "/", "Name": "tool.gpt", - "Revision": "6b5a88075b1e4501e845f4dab5be16ea8739aa4c" + "Revision": "ee5c02a9aeca5a1cbffcf569751e37432bfe0344" } }, - "workingDir": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/6b5a88075b1e4501e845f4dab5be16ea8739aa4c" + "workingDir": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344" }, "currentAgent": {}, "inputContext": null, @@ -93,9 +93,9 @@ "usage": {} }, { - "time": "2024-07-02T19:39:43.666188-04:00", + "time": "2024-08-23T11:56:55.69666-04:00", "callContext": { - "id": "1719963583", + "id": "1724428615", "tool": { "name": "Anthropic Claude3 Model Provider", "description": "Model provider for Anthropic hosted Claude3 models", @@ -106,30 +106,30 @@ "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env" ], "instructions": "#!sys.daemon /usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/main.py", - "id": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/6b5a88075b1e4501e845f4dab5be16ea8739aa4c/tool.gpt:Anthropic Claude3 Model Provider", + "id": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt:Anthropic Claude3 Model Provider", "toolMapping": { "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env": [ { "reference": "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env", - "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/651dfad6e7cf3a385ef408afa93ce522c10f8508/tool.gpt:token" + "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/37e5f870e195b896438c0bc35867403a42f82e89/tool.gpt:token" } ] }, "localTools": { - "anthropic claude3 model provider": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/6b5a88075b1e4501e845f4dab5be16ea8739aa4c/tool.gpt:Anthropic Claude3 Model Provider" + "anthropic claude3 model provider": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt:Anthropic Claude3 Model Provider" }, "source": { - "location": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/6b5a88075b1e4501e845f4dab5be16ea8739aa4c/tool.gpt", + "location": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt", "lineNo": 1, "repo": { "VCS": "git", "Root": "https://github.com/gptscript-ai/claude3-anthropic-provider.git", "Path": "/", "Name": "tool.gpt", - "Revision": "6b5a88075b1e4501e845f4dab5be16ea8739aa4c" + "Revision": "ee5c02a9aeca5a1cbffcf569751e37432bfe0344" } }, - "workingDir": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/6b5a88075b1e4501e845f4dab5be16ea8739aa4c" + "workingDir": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344" }, "currentAgent": {}, "inputContext": null, @@ -138,17 +138,17 @@ }, "type": "callFinish", "usage": {}, - "content": "http://127.0.0.1:10887" + "content": "http://127.0.0.1:10797" }, { - "time": "2024-07-02T19:39:43.666385-04:00", + "time": "2024-08-23T11:56:55.696858-04:00", "type": "runFinish", "usage": {} }, { - "time": "2024-07-02T19:39:43.666475-04:00", + "time": "2024-08-23T11:56:55.696913-04:00", "callContext": { - "id": "1719963582", + "id": "1724428614", "tool": { "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", "internalPrompt": null, @@ -179,7 +179,7 @@ "inputContext": null }, "type": "callChat", - "chatCompletionId": "1719963584", + "chatCompletionId": "1724428616", "usage": {}, "chatRequest": { "model": "claude-3-5-sonnet-20240620", @@ -211,85 +211,9 @@ } }, { - "time": "2024-07-02T19:39:43.66707-04:00", + "time": "2024-08-23T11:56:59.400506-04:00", "callContext": { - "id": "1719963582", - "tool": { - "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1719963584", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-07-02T19:39:45.331397-04:00", - "callContext": { - "id": "1719963582", - "tool": { - "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1719963584", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\": \"how are you doing\"}" - }, - { - "time": "2024-07-02T19:39:45.332721-04:00", - "callContext": { - "id": "1719963582", + "id": "1724428614", "tool": { "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", "internalPrompt": null, @@ -320,7 +244,7 @@ "inputContext": null }, "type": "callChat", - "chatCompletionId": "1719963584", + "chatCompletionId": "1724428616", "usage": {}, "chatResponse": { "role": "assistant", @@ -328,7 +252,7 @@ { "toolCall": { "index": 0, - "id": "toolu_01XLGhfvziYUf8rFoQEbvw4P", + "id": "toolu_01RvNTnUzwXhpBumHEACT4Qo", "function": { "name": "bob", "arguments": "{\"question\": \"how are you doing\"}" @@ -340,9 +264,9 @@ } }, { - "time": "2024-07-02T19:39:45.332824-04:00", + "time": "2024-08-23T11:56:59.400599-04:00", "callContext": { - "id": "1719963582", + "id": "1724428614", "tool": { "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", "internalPrompt": null, @@ -373,7 +297,7 @@ "inputContext": null }, "toolSubCalls": { - "toolu_01XLGhfvziYUf8rFoQEbvw4P": { + "toolu_01RvNTnUzwXhpBumHEACT4Qo": { "toolID": "testdata/Bob/test.gpt:bob", "input": "{\"question\": \"how are you doing\"}" } @@ -382,9 +306,9 @@ "usage": {} }, { - "time": "2024-07-02T19:39:45.332869-04:00", + "time": "2024-08-23T11:56:59.400645-04:00", "callContext": { - "id": "toolu_01XLGhfvziYUf8rFoQEbvw4P", + "id": "toolu_01RvNTnUzwXhpBumHEACT4Qo", "tool": { "name": "bob", "description": "I'm Bob, a friendly guy.", @@ -399,7 +323,7 @@ }, "type": "object" }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", @@ -414,16 +338,16 @@ "currentAgent": {}, "inputContext": null, "toolName": "bob", - "parentID": "1719963582" + "parentID": "1724428614" }, "type": "callStart", "usage": {}, "content": "{\"question\": \"how are you doing\"}" }, { - "time": "2024-07-02T19:39:45.487113-04:00", + "time": "2024-08-23T11:56:59.66279-04:00", "callContext": { - "id": "toolu_01XLGhfvziYUf8rFoQEbvw4P", + "id": "toolu_01RvNTnUzwXhpBumHEACT4Qo", "tool": { "name": "bob", "description": "I'm Bob, a friendly guy.", @@ -438,7 +362,7 @@ }, "type": "object" }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", @@ -453,17 +377,17 @@ "currentAgent": {}, "inputContext": null, "toolName": "bob", - "parentID": "1719963582" + "parentID": "1724428614" }, "type": "callChat", - "chatCompletionId": "1719963585", + "chatCompletionId": "1724428617", "usage": {}, "chatRequest": { "model": "claude-3-5-sonnet-20240620", "messages": [ { "role": "system", - "content": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"" + "content": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"" }, { "role": "user", @@ -474,49 +398,9 @@ } }, { - "time": "2024-07-02T19:39:45.487696-04:00", - "callContext": { - "id": "toolu_01XLGhfvziYUf8rFoQEbvw4P", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1719963582" - }, - "type": "callProgress", - "chatCompletionId": "1719963585", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-07-02T19:39:46.547634-04:00", + "time": "2024-08-23T11:57:01.055866-04:00", "callContext": { - "id": "toolu_01XLGhfvziYUf8rFoQEbvw4P", + "id": "toolu_01RvNTnUzwXhpBumHEACT4Qo", "tool": { "name": "bob", "description": "I'm Bob, a friendly guy.", @@ -531,7 +415,7 @@ }, "type": "object" }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", @@ -546,50 +430,10 @@ "currentAgent": {}, "inputContext": null, "toolName": "bob", - "parentID": "1719963582" - }, - "type": "callProgress", - "chatCompletionId": "1719963585", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-07-02T19:39:46.549112-04:00", - "callContext": { - "id": "toolu_01XLGhfvziYUf8rFoQEbvw4P", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1719963582" + "parentID": "1724428614" }, "type": "callChat", - "chatCompletionId": "1719963585", + "chatCompletionId": "1724428617", "usage": {}, "chatResponse": { "role": "assistant", @@ -602,9 +446,9 @@ } }, { - "time": "2024-07-02T19:39:46.549192-04:00", + "time": "2024-08-23T11:57:01.055916-04:00", "callContext": { - "id": "toolu_01XLGhfvziYUf8rFoQEbvw4P", + "id": "toolu_01RvNTnUzwXhpBumHEACT4Qo", "tool": { "name": "bob", "description": "I'm Bob, a friendly guy.", @@ -619,7 +463,7 @@ }, "type": "object" }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", @@ -634,16 +478,16 @@ "currentAgent": {}, "inputContext": null, "toolName": "bob", - "parentID": "1719963582" + "parentID": "1724428614" }, "type": "callFinish", "usage": {}, "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" }, { - "time": "2024-07-02T19:39:46.549253-04:00", + "time": "2024-08-23T11:57:01.055981-04:00", "callContext": { - "id": "1719963582", + "id": "1724428614", "tool": { "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", "internalPrompt": null, @@ -678,9 +522,9 @@ "usage": {} }, { - "time": "2024-07-02T19:39:46.710406-04:00", + "time": "2024-08-23T11:57:01.287438-04:00", "callContext": { - "id": "1719963582", + "id": "1724428614", "tool": { "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", "internalPrompt": null, @@ -711,7 +555,7 @@ "inputContext": null }, "type": "callChat", - "chatCompletionId": "1719963586", + "chatCompletionId": "1724428618", "usage": {}, "chatRequest": { "model": "claude-3-5-sonnet-20240620", @@ -725,7 +569,7 @@ "content": "", "tool_calls": [ { - "id": "toolu_01XLGhfvziYUf8rFoQEbvw4P", + "id": "toolu_01RvNTnUzwXhpBumHEACT4Qo", "type": "function", "function": { "name": "bob", @@ -738,7 +582,7 @@ "role": "tool", "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!", "name": "bob", - "tool_call_id": "toolu_01XLGhfvziYUf8rFoQEbvw4P" + "tool_call_id": "toolu_01RvNTnUzwXhpBumHEACT4Qo" } ], "temperature": 0, @@ -763,85 +607,9 @@ } }, { - "time": "2024-07-02T19:39:46.710675-04:00", - "callContext": { - "id": "1719963582", - "tool": { - "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1719963586", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-07-02T19:39:48.861353-04:00", - "callContext": { - "id": "1719963582", - "tool": { - "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1719963586", - "usage": {}, - "content": "Bob's reply to the question \"how are you doing\" is:\n\n\"Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!\"\n\nI have repeated his reply exactly as requested." - }, - { - "time": "2024-07-02T19:39:48.862116-04:00", + "time": "2024-08-23T11:57:02.411152-04:00", "callContext": { - "id": "1719963582", + "id": "1724428614", "tool": { "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", "internalPrompt": null, @@ -872,22 +640,22 @@ "inputContext": null }, "type": "callChat", - "chatCompletionId": "1719963586", + "chatCompletionId": "1724428618", "usage": {}, "chatResponse": { "role": "assistant", "content": [ { - "text": "Bob's reply to the question \"how are you doing\" is:\n\n\"Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!\"\n\nI have repeated his reply exactly as requested." + "text": "Bob's reply was: \"Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!\"" } ], "usage": {} } }, { - "time": "2024-07-02T19:39:48.862154-04:00", + "time": "2024-08-23T11:57:02.411186-04:00", "callContext": { - "id": "1719963582", + "id": "1724428614", "tool": { "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", "internalPrompt": null, @@ -919,10 +687,10 @@ }, "type": "callFinish", "usage": {}, - "content": "Bob's reply to the question \"how are you doing\" is:\n\n\"Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!\"\n\nI have repeated his reply exactly as requested." + "content": "Bob's reply was: \"Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!\"" }, { - "time": "2024-07-02T19:39:48.862164-04:00", + "time": "2024-08-23T11:57:02.411205-04:00", "type": "runFinish", "usage": {} } diff --git a/pkg/tests/smoke/testdata/Bob/gpt-4-turbo-2024-04-09-expected.json b/pkg/tests/smoke/testdata/Bob/gpt-4-turbo-2024-04-09-expected.json index 01745e39..04fb2bdb 100644 --- a/pkg/tests/smoke/testdata/Bob/gpt-4-turbo-2024-04-09-expected.json +++ b/pkg/tests/smoke/testdata/Bob/gpt-4-turbo-2024-04-09-expected.json @@ -1,13 +1,13 @@ [ { - "time": "2024-06-20T17:08:06.902669-04:00", + "time": "2024-08-23T10:57:23.621143-04:00", "type": "runStart", "usage": {} }, { - "time": "2024-06-20T17:08:06.902927-04:00", + "time": "2024-08-23T10:57:23.62178-04:00", "callContext": { - "id": "1718917687", + "id": "1724425044", "tool": { "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, @@ -34,15 +34,16 @@ }, "workingDir": "testdata/Bob" }, + "currentAgent": {}, "inputContext": null }, "type": "callStart", "usage": {} }, { - "time": "2024-06-20T17:08:07.292073-04:00", + "time": "2024-08-23T10:57:23.621807-04:00", "callContext": { - "id": "1718917687", + "id": "1724425044", "tool": { "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, @@ -69,10 +70,11 @@ }, "workingDir": "testdata/Bob" }, + "currentAgent": {}, "inputContext": null }, "type": "callChat", - "chatCompletionId": "1718917688", + "chatCompletionId": "1724425045", "usage": {}, "chatRequest": { "model": "gpt-4-turbo-2024-04-09", @@ -104,9 +106,9 @@ } }, { - "time": "2024-06-20T17:08:07.292172-04:00", + "time": "2024-08-23T10:57:24.816101-04:00", "callContext": { - "id": "1718917687", + "id": "1724425044", "tool": { "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, @@ -133,1832 +135,41 @@ }, "workingDir": "testdata/Bob" }, + "currentAgent": {}, "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1718917688", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-06-20T17:08:28.052253-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917688", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"" - }, - { - "time": "2024-06-20T17:08:28.05243-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917688", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"" - }, - { - "time": "2024-06-20T17:08:28.1369-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917688", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"" - }, - { - "time": "2024-06-20T17:08:28.137013-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917688", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"" - }, - { - "time": "2024-06-20T17:08:28.244585-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917688", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are" - }, - { - "time": "2024-06-20T17:08:28.244731-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917688", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are" - }, - { - "time": "2024-06-20T17:08:28.32623-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917688", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing" - }, - { - "time": "2024-06-20T17:08:28.326358-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917688", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T17:08:28.326393-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917688", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T17:08:28.32645-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917688", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T17:08:28.326527-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917688", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T17:08:28.327843-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callChat", - "chatCompletionId": "1718917688", - "usage": { - "promptTokens": 142, - "completionTokens": 17, - "totalTokens": 159 - }, - "chatResponse": { - "role": "assistant", - "content": [ - { - "toolCall": { - "index": 0, - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "function": { - "name": "bob", - "arguments": "{\"question\":\"how are you doing\"}" - } - } - } - ], - "usage": { - "promptTokens": 142, - "completionTokens": 17, - "totalTokens": 159 - } - } - }, - { - "time": "2024-06-20T17:08:28.328046-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "toolSubCalls": { - "call_vsmL6EoDecm0oVmUnHIvNkaL": { - "toolID": "testdata/Bob/test.gpt:bob", - "input": "{\"question\":\"how are you doing\"}" - } - }, - "type": "callSubCalls", - "usage": {} - }, - { - "time": "2024-06-20T17:08:28.328123-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callStart", - "usage": {}, - "content": "{\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T17:08:28.53993-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callChat", - "chatCompletionId": "1718917689", - "usage": {}, - "chatRequest": { - "model": "gpt-4-turbo-2024-04-09", - "messages": [ - { - "role": "system", - "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nWhen asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"" - }, - { - "role": "user", - "content": "{\"question\":\"how are you doing\"}" - } - ], - "temperature": 0 - } - }, - { - "time": "2024-06-20T17:08:28.540154-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-06-20T17:08:29.188341-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks" - }, - { - "time": "2024-06-20T17:08:29.188493-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks" - }, - { - "time": "2024-06-20T17:08:29.244545-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking" - }, - { - "time": "2024-06-20T17:08:29.244765-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking" - }, - { - "time": "2024-06-20T17:08:29.643951-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking how are" - }, - { - "time": "2024-06-20T17:08:29.644128-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking how are" - }, - { - "time": "2024-06-20T17:08:29.676951-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking how are you doing," - }, - { - "time": "2024-06-20T17:08:29.677047-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking how are you doing," - }, - { - "time": "2024-06-20T17:08:29.677123-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking how are you doing, I" - }, - { - "time": "2024-06-20T17:08:29.677156-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm" - }, - { - "time": "2024-06-20T17:08:29.677184-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing" - }, - { - "time": "2024-06-20T17:08:29.677251-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great" - }, - { - "time": "2024-06-20T17:08:29.677288-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great" - }, - { - "time": "2024-06-20T17:08:29.727848-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly" - }, - { - "time": "2024-06-20T17:08:29.727983-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly" - }, - { - "time": "2024-06-20T17:08:29.782554-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T17:08:29.782738-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T17:08:29.782806-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T17:08:29.782839-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T17:08:29.782868-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callProgress", - "chatCompletionId": "1718917689", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T17:08:29.782988-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callChat", - "chatCompletionId": "1718917689", - "usage": { - "promptTokens": 124, - "completionTokens": 17, - "totalTokens": 141 - }, - "chatResponse": { - "role": "assistant", - "content": [ - { - "text": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!" - } - ], - "usage": { - "promptTokens": 124, - "completionTokens": 17, - "totalTokens": 141 - } - } - }, - { - "time": "2024-06-20T17:08:29.783047-04:00", - "callContext": { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917687" - }, - "type": "callFinish", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T17:08:29.783089-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "toolResults": 1, - "type": "callContinue", - "usage": {} - }, - { - "time": "2024-06-20T17:08:29.966093-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callChat", - "chatCompletionId": "1718917690", - "usage": {}, - "chatRequest": { - "model": "gpt-4-turbo-2024-04-09", - "messages": [ - { - "role": "system", - "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nAsk Bob \"how are you doing\" and repeat his reply exactly." - }, - { - "role": "assistant", - "content": "", - "tool_calls": [ - { - "id": "call_vsmL6EoDecm0oVmUnHIvNkaL", - "type": "function", - "function": { - "name": "bob", - "arguments": "{\"question\":\"how are you doing\"}" - } - } - ] - }, - { - "role": "tool", - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!", - "name": "bob", - "tool_call_id": "call_vsmL6EoDecm0oVmUnHIvNkaL" - } - ], - "temperature": 0, - "tools": [ - { - "type": "function", - "function": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "parameters": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - } - } - } - ] - } - }, - { - "time": "2024-06-20T17:08:29.966449-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917690", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-06-20T17:08:30.668641-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917690", - "usage": {}, - "content": "I'm" - }, - { - "time": "2024-06-20T17:08:30.668802-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917690", - "usage": {}, - "content": "I'm" - }, - { - "time": "2024-06-20T17:08:30.668957-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917690", - "usage": {}, - "content": "I'm" - }, - { - "time": "2024-06-20T17:08:30.669089-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null + "type": "callChat", + "chatCompletionId": "1724425045", + "usage": { + "promptTokens": 142, + "completionTokens": 17, + "totalTokens": 159 }, - "type": "callProgress", - "chatCompletionId": "1718917690", - "usage": {}, - "content": "I'm doing" + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_GuCVVGT6CDEdsFWn13k880S2", + "function": { + "name": "bob", + "arguments": "{\"question\":\"how are you doing\"}" + } + } + } + ], + "usage": { + "promptTokens": 142, + "completionTokens": 17, + "totalTokens": 159 + } + } }, { - "time": "2024-06-20T17:08:30.669299-04:00", + "time": "2024-08-23T10:57:24.81638-04:00", "callContext": { - "id": "1718917687", + "id": "1724425044", "tool": { "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, @@ -1985,165 +196,209 @@ }, "workingDir": "testdata/Bob" }, + "currentAgent": {}, "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1718917690", - "usage": {}, - "content": "I'm doing great fellow" + "toolSubCalls": { + "call_GuCVVGT6CDEdsFWn13k880S2": { + "toolID": "testdata/Bob/test.gpt:bob", + "input": "{\"question\":\"how are you doing\"}" + } + }, + "type": "callSubCalls", + "usage": {} }, { - "time": "2024-06-20T17:08:30.669392-04:00", + "time": "2024-08-23T10:57:24.816559-04:00", "callContext": { - "id": "1718917687", + "id": "call_GuCVVGT6CDEdsFWn13k880S2", "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" } - ] + }, + "type": "object" }, + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", + "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", "bob": "testdata/Bob/test.gpt:bob" }, "source": { "location": "testdata/Bob/test.gpt", - "lineNo": 1 + "lineNo": 6 }, "workingDir": "testdata/Bob" }, - "inputContext": null + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724425044" }, - "type": "callProgress", - "chatCompletionId": "1718917690", + "type": "callStart", "usage": {}, - "content": "I'm doing great fellow" + "content": "{\"question\":\"how are you doing\"}" }, { - "time": "2024-06-20T17:08:30.716062-04:00", + "time": "2024-08-23T10:57:24.818507-04:00", "callContext": { - "id": "1718917687", + "id": "call_GuCVVGT6CDEdsFWn13k880S2", "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" } - ] + }, + "type": "object" }, + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", + "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", "bob": "testdata/Bob/test.gpt:bob" }, "source": { "location": "testdata/Bob/test.gpt", - "lineNo": 1 + "lineNo": 6 }, "workingDir": "testdata/Bob" }, - "inputContext": null + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724425044" }, - "type": "callProgress", - "chatCompletionId": "1718917690", + "type": "callChat", + "chatCompletionId": "1724425046", "usage": {}, - "content": "I'm doing great fellow friendly AI" + "chatRequest": { + "model": "gpt-4-turbo-2024-04-09", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nWhen asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"" + }, + { + "role": "user", + "content": "{\"question\":\"how are you doing\"}" + } + ], + "temperature": 0 + } }, { - "time": "2024-06-20T17:08:30.7162-04:00", + "time": "2024-08-23T10:57:25.978016-04:00", "callContext": { - "id": "1718917687", + "id": "call_GuCVVGT6CDEdsFWn13k880S2", "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" } - ] + }, + "type": "object" }, + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", + "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", "bob": "testdata/Bob/test.gpt:bob" }, "source": { "location": "testdata/Bob/test.gpt", - "lineNo": 1 + "lineNo": 6 }, "workingDir": "testdata/Bob" }, - "inputContext": null + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724425044" }, - "type": "callProgress", - "chatCompletionId": "1718917690", - "usage": {}, - "content": "I'm doing great fellow friendly AI" + "type": "callChat", + "chatCompletionId": "1724425046", + "usage": { + "promptTokens": 124, + "completionTokens": 18, + "totalTokens": 142 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" + } + ], + "usage": { + "promptTokens": 124, + "completionTokens": 18, + "totalTokens": 142 + } + } }, { - "time": "2024-06-20T17:08:30.743098-04:00", + "time": "2024-08-23T10:57:25.978152-04:00", "callContext": { - "id": "1718917687", + "id": "call_GuCVVGT6CDEdsFWn13k880S2", "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" } - ] + }, + "type": "object" }, + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", + "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", "bob": "testdata/Bob/test.gpt:bob" }, "source": { "location": "testdata/Bob/test.gpt", - "lineNo": 1 + "lineNo": 6 }, "workingDir": "testdata/Bob" }, - "inputContext": null + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724425044" }, - "type": "callProgress", - "chatCompletionId": "1718917690", + "type": "callFinish", "usage": {}, - "content": "I'm doing great fellow friendly AI tool!" + "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" }, { - "time": "2024-06-20T17:08:30.743401-04:00", + "time": "2024-08-23T10:57:25.978236-04:00", "callContext": { - "id": "1718917687", + "id": "1724425044", "tool": { "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, @@ -2170,17 +425,17 @@ }, "workingDir": "testdata/Bob" }, + "currentAgent": {}, "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1718917690", - "usage": {}, - "content": "I'm doing great fellow friendly AI tool!" + "toolResults": 1, + "type": "callContinue", + "usage": {} }, { - "time": "2024-06-20T17:08:30.74648-04:00", + "time": "2024-08-23T10:57:25.980293-04:00", "callContext": { - "id": "1718917687", + "id": "1724425044", "tool": { "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, @@ -2207,54 +462,65 @@ }, "workingDir": "testdata/Bob" }, + "currentAgent": {}, "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1718917690", + "type": "callChat", + "chatCompletionId": "1724425047", "usage": {}, - "content": "I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T17:08:30.746568-04:00", - "callContext": { - "id": "1718917687", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ + "chatRequest": { + "model": "gpt-4-turbo-2024-04-09", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nAsk Bob \"how are you doing\" and repeat his reply exactly." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" + "id": "call_GuCVVGT6CDEdsFWn13k880S2", + "type": "function", + "function": { + "name": "bob", + "arguments": "{\"question\":\"how are you doing\"}" + } } ] }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917690", - "usage": {}, - "content": "I'm doing great fellow friendly AI tool!" + { + "role": "tool", + "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!", + "name": "bob", + "tool_call_id": "call_GuCVVGT6CDEdsFWn13k880S2" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", + "parameters": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } }, { - "time": "2024-06-20T17:08:30.746778-04:00", + "time": "2024-08-23T10:57:26.937038-04:00", "callContext": { - "id": "1718917687", + "id": "1724425044", "tool": { "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, @@ -2281,14 +547,15 @@ }, "workingDir": "testdata/Bob" }, + "currentAgent": {}, "inputContext": null }, "type": "callChat", - "chatCompletionId": "1718917690", + "chatCompletionId": "1724425047", "usage": { - "promptTokens": 183, + "promptTokens": 184, "completionTokens": 10, - "totalTokens": 193 + "totalTokens": 194 }, "chatResponse": { "role": "assistant", @@ -2298,16 +565,16 @@ } ], "usage": { - "promptTokens": 183, + "promptTokens": 184, "completionTokens": 10, - "totalTokens": 193 + "totalTokens": 194 } } }, { - "time": "2024-06-20T17:08:30.746856-04:00", + "time": "2024-08-23T10:57:26.937115-04:00", "callContext": { - "id": "1718917687", + "id": "1724425044", "tool": { "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, @@ -2334,6 +601,7 @@ }, "workingDir": "testdata/Bob" }, + "currentAgent": {}, "inputContext": null }, "type": "callFinish", @@ -2341,7 +609,7 @@ "content": "I'm doing great fellow friendly AI tool!" }, { - "time": "2024-06-20T17:08:30.746896-04:00", + "time": "2024-08-23T10:57:26.937179-04:00", "type": "runFinish", "usage": {} } diff --git a/pkg/tests/smoke/testdata/Bob/gpt-4o-2024-05-13-expected.json b/pkg/tests/smoke/testdata/Bob/gpt-4o-2024-05-13-expected.json index 4d22287d..e23c9a8d 100644 --- a/pkg/tests/smoke/testdata/Bob/gpt-4o-2024-05-13-expected.json +++ b/pkg/tests/smoke/testdata/Bob/gpt-4o-2024-05-13-expected.json @@ -1,13 +1,13 @@ [ { - "time": "2024-06-20T16:58:11.3174-04:00", + "time": "2024-08-23T10:52:21.524039-04:00", "type": "runStart", "usage": {} }, { - "time": "2024-06-20T16:58:11.317644-04:00", + "time": "2024-08-23T10:52:21.524345-04:00", "callContext": { - "id": "1718917092", + "id": "1724424742", "tool": { "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, @@ -34,15 +34,16 @@ }, "workingDir": "testdata/Bob" }, + "currentAgent": {}, "inputContext": null }, "type": "callStart", "usage": {} }, { - "time": "2024-06-20T16:58:11.638778-04:00", + "time": "2024-08-23T10:52:21.524388-04:00", "callContext": { - "id": "1718917092", + "id": "1724424742", "tool": { "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, @@ -69,10 +70,11 @@ }, "workingDir": "testdata/Bob" }, + "currentAgent": {}, "inputContext": null }, "type": "callChat", - "chatCompletionId": "1718917093", + "chatCompletionId": "1724424743", "usage": {}, "chatRequest": { "model": "gpt-4o-2024-05-13", @@ -104,9 +106,9 @@ } }, { - "time": "2024-06-20T16:58:11.639016-04:00", + "time": "2024-08-23T10:52:22.05589-04:00", "callContext": { - "id": "1718917092", + "id": "1724424742", "tool": { "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, @@ -133,2127 +135,41 @@ }, "workingDir": "testdata/Bob" }, + "currentAgent": {}, "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1718917093", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-06-20T16:58:12.564724-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917093", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"" - }, - { - "time": "2024-06-20T16:58:12.564911-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917093", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question" - }, - { - "time": "2024-06-20T16:58:12.564948-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917093", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question" - }, - { - "time": "2024-06-20T16:58:12.56497-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917093", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"" - }, - { - "time": "2024-06-20T16:58:12.564995-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917093", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how" - }, - { - "time": "2024-06-20T16:58:12.565045-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917093", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you" - }, - { - "time": "2024-06-20T16:58:12.565071-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917093", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you" - }, - { - "time": "2024-06-20T16:58:12.565112-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917093", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T16:58:12.565137-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917093", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T16:58:12.56516-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917093", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T16:58:12.565176-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917093", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T16:58:12.565397-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callChat", - "chatCompletionId": "1718917093", - "usage": { - "promptTokens": 138, - "completionTokens": 17, - "totalTokens": 155 - }, - "chatResponse": { - "role": "assistant", - "content": [ - { - "toolCall": { - "index": 0, - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "function": { - "name": "bob", - "arguments": "{\"question\":\"how are you doing\"}" - } - } - } - ], - "usage": { - "promptTokens": 138, - "completionTokens": 17, - "totalTokens": 155 - } - } - }, - { - "time": "2024-06-20T16:58:12.565644-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "toolSubCalls": { - "call_rTx93wiIASDA8uk8XHwjVmCC": { - "toolID": "testdata/Bob/test.gpt:bob", - "input": "{\"question\":\"how are you doing\"}" - } - }, - "type": "callSubCalls", - "usage": {} - }, - { - "time": "2024-06-20T16:58:12.565728-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callStart", - "usage": {}, - "content": "{\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T16:58:12.72779-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callChat", - "chatCompletionId": "1718917094", - "usage": {}, - "chatRequest": { - "model": "gpt-4o-2024-05-13", - "messages": [ - { - "role": "system", - "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nWhen asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"" - }, - { - "role": "user", - "content": "{\"question\":\"how are you doing\"}" - } - ], - "temperature": 0 - } - }, - { - "time": "2024-06-20T16:58:12.728069-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-06-20T16:58:13.077264-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {} - }, - { - "time": "2024-06-20T16:58:13.077534-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks" - }, - { - "time": "2024-06-20T16:58:13.134723-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking" - }, - { - "time": "2024-06-20T16:58:13.134893-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking" - }, - { - "time": "2024-06-20T16:58:13.230591-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking \"how" - }, - { - "time": "2024-06-20T16:58:13.230667-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking \"how" - }, - { - "time": "2024-06-20T16:58:13.246344-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking \"how are you" - }, - { - "time": "2024-06-20T16:58:13.246468-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking \"how are you doing" - }, - { - "time": "2024-06-20T16:58:13.246531-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking \"how are you doing" - }, - { - "time": "2024-06-20T16:58:13.246592-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm" - }, - { - "time": "2024-06-20T16:58:13.246645-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing" - }, - { - "time": "2024-06-20T16:58:13.246736-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great" - }, - { - "time": "2024-06-20T16:58:13.246796-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great" - }, - { - "time": "2024-06-20T16:58:13.30169-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly" - }, - { - "time": "2024-06-20T16:58:13.301837-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly" - }, - { - "time": "2024-06-20T16:58:13.31565-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool" - }, - { - "time": "2024-06-20T16:58:13.315798-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T16:58:13.315842-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T16:58:13.315879-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T16:58:13.315951-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callProgress", - "chatCompletionId": "1718917094", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T16:58:13.316055-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callChat", - "chatCompletionId": "1718917094", - "usage": { - "promptTokens": 122, - "completionTokens": 17, - "totalTokens": 139 - }, - "chatResponse": { - "role": "assistant", - "content": [ - { - "text": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" - } - ], - "usage": { - "promptTokens": 122, - "completionTokens": 17, - "totalTokens": 139 - } - } - }, - { - "time": "2024-06-20T16:58:13.316115-04:00", - "callContext": { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917092" - }, - "type": "callFinish", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T16:58:13.316171-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "toolResults": 1, - "type": "callContinue", - "usage": {} - }, - { - "time": "2024-06-20T16:58:13.533625-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callChat", - "chatCompletionId": "1718917095", - "usage": {}, - "chatRequest": { - "model": "gpt-4o-2024-05-13", - "messages": [ - { - "role": "system", - "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nAsk Bob \"how are you doing\" and repeat his reply exactly." - }, - { - "role": "assistant", - "content": "", - "tool_calls": [ - { - "id": "call_rTx93wiIASDA8uk8XHwjVmCC", - "type": "function", - "function": { - "name": "bob", - "arguments": "{\"question\":\"how are you doing\"}" - } - } - ] - }, - { - "role": "tool", - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!", - "name": "bob", - "tool_call_id": "call_rTx93wiIASDA8uk8XHwjVmCC" - } - ], - "temperature": 0, - "tools": [ - { - "type": "function", - "function": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "parameters": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - } - } - } - ] - } - }, - { - "time": "2024-06-20T16:58:13.53384-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917095", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-06-20T16:58:13.856349-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917095", - "usage": {}, - "content": "Thanks" - }, - { - "time": "2024-06-20T16:58:13.856437-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917095", - "usage": {}, - "content": "Thanks" - }, - { - "time": "2024-06-20T16:58:13.874317-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917095", - "usage": {}, - "content": "Thanks for asking" - }, - { - "time": "2024-06-20T16:58:13.874428-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917095", - "usage": {}, - "content": "Thanks for asking" - }, - { - "time": "2024-06-20T16:58:14.060243-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917095", - "usage": {}, - "content": "Thanks for asking \"how are" - }, - { - "time": "2024-06-20T16:58:14.060366-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917095", - "usage": {}, - "content": "Thanks for asking \"how are" - }, - { - "time": "2024-06-20T16:58:14.060418-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917095", - "usage": {}, - "content": "Thanks for asking \"how are" - }, - { - "time": "2024-06-20T16:58:14.060435-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917095", - "usage": {}, - "content": "Thanks for asking \"how are you" - }, - { - "time": "2024-06-20T16:58:14.060456-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917095", - "usage": {}, - "content": "Thanks for asking \"how are you doing" - }, - { - "time": "2024-06-20T16:58:14.060521-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917095", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing" - }, - { - "time": "2024-06-20T16:58:14.060555-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917095", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing" - }, - { - "time": "2024-06-20T16:58:14.060577-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null + "type": "callChat", + "chatCompletionId": "1724424743", + "usage": { + "promptTokens": 138, + "completionTokens": 17, + "totalTokens": 155 }, - "type": "callProgress", - "chatCompletionId": "1718917095", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing" + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_llqga49DSQM9Ftf9vMhk0qac", + "function": { + "name": "bob", + "arguments": "{\"question\":\"how are you doing\"}" + } + } + } + ], + "usage": { + "promptTokens": 138, + "completionTokens": 17, + "totalTokens": 155 + } + } }, { - "time": "2024-06-20T16:58:14.06061-04:00", + "time": "2024-08-23T10:52:22.05621-04:00", "callContext": { - "id": "1718917092", + "id": "1724424742", "tool": { "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, @@ -2280,165 +196,209 @@ }, "workingDir": "testdata/Bob" }, + "currentAgent": {}, "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1718917095", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow" + "toolSubCalls": { + "call_llqga49DSQM9Ftf9vMhk0qac": { + "toolID": "testdata/Bob/test.gpt:bob", + "input": "{\"question\":\"how are you doing\"}" + } + }, + "type": "callSubCalls", + "usage": {} }, { - "time": "2024-06-20T16:58:14.060626-04:00", + "time": "2024-08-23T10:52:22.056372-04:00", "callContext": { - "id": "1718917092", + "id": "call_llqga49DSQM9Ftf9vMhk0qac", "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" } - ] + }, + "type": "object" }, + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", + "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", "bob": "testdata/Bob/test.gpt:bob" }, "source": { "location": "testdata/Bob/test.gpt", - "lineNo": 1 + "lineNo": 6 }, "workingDir": "testdata/Bob" }, - "inputContext": null + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724424742" }, - "type": "callProgress", - "chatCompletionId": "1718917095", + "type": "callStart", "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow" + "content": "{\"question\":\"how are you doing\"}" }, { - "time": "2024-06-20T16:58:14.060686-04:00", + "time": "2024-08-23T10:52:22.056577-04:00", "callContext": { - "id": "1718917092", + "id": "call_llqga49DSQM9Ftf9vMhk0qac", "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" } - ] + }, + "type": "object" }, + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", + "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", "bob": "testdata/Bob/test.gpt:bob" }, "source": { "location": "testdata/Bob/test.gpt", - "lineNo": 1 + "lineNo": 6 }, "workingDir": "testdata/Bob" }, - "inputContext": null + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724424742" }, - "type": "callProgress", - "chatCompletionId": "1718917095", + "type": "callChat", + "chatCompletionId": "1724424744", "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI" + "chatRequest": { + "model": "gpt-4o-2024-05-13", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nWhen asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"" + }, + { + "role": "user", + "content": "{\"question\":\"how are you doing\"}" + } + ], + "temperature": 0 + } }, { - "time": "2024-06-20T16:58:14.06071-04:00", + "time": "2024-08-23T10:52:22.505872-04:00", "callContext": { - "id": "1718917092", + "id": "call_llqga49DSQM9Ftf9vMhk0qac", "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" } - ] + }, + "type": "object" }, + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", + "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", "bob": "testdata/Bob/test.gpt:bob" }, "source": { "location": "testdata/Bob/test.gpt", - "lineNo": 1 + "lineNo": 6 }, "workingDir": "testdata/Bob" }, - "inputContext": null + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724424742" }, - "type": "callProgress", - "chatCompletionId": "1718917095", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool" + "type": "callChat", + "chatCompletionId": "1724424744", + "usage": { + "promptTokens": 122, + "completionTokens": 17, + "totalTokens": 139 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" + } + ], + "usage": { + "promptTokens": 122, + "completionTokens": 17, + "totalTokens": 139 + } + } }, { - "time": "2024-06-20T16:58:14.060727-04:00", + "time": "2024-08-23T10:52:22.505998-04:00", "callContext": { - "id": "1718917092", + "id": "call_llqga49DSQM9Ftf9vMhk0qac", "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" } - ] + }, + "type": "object" }, + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", + "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", "bob": "testdata/Bob/test.gpt:bob" }, "source": { "location": "testdata/Bob/test.gpt", - "lineNo": 1 + "lineNo": 6 }, "workingDir": "testdata/Bob" }, - "inputContext": null + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724424742" }, - "type": "callProgress", - "chatCompletionId": "1718917095", + "type": "callFinish", "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool" + "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" }, { - "time": "2024-06-20T16:58:14.060743-04:00", + "time": "2024-08-23T10:52:22.506086-04:00", "callContext": { - "id": "1718917092", + "id": "1724424742", "tool": { "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, @@ -2465,17 +425,17 @@ }, "workingDir": "testdata/Bob" }, + "currentAgent": {}, "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1718917095", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" + "toolResults": 1, + "type": "callContinue", + "usage": {} }, { - "time": "2024-06-20T16:58:14.060788-04:00", + "time": "2024-08-23T10:52:22.50621-04:00", "callContext": { - "id": "1718917092", + "id": "1724424742", "tool": { "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, @@ -2502,54 +462,65 @@ }, "workingDir": "testdata/Bob" }, + "currentAgent": {}, "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1718917095", + "type": "callChat", + "chatCompletionId": "1724424745", "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T16:58:14.060806-04:00", - "callContext": { - "id": "1718917092", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ + "chatRequest": { + "model": "gpt-4o-2024-05-13", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nAsk Bob \"how are you doing\" and repeat his reply exactly." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" + "id": "call_llqga49DSQM9Ftf9vMhk0qac", + "type": "function", + "function": { + "name": "bob", + "arguments": "{\"question\":\"how are you doing\"}" + } } ] }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917095", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" + { + "role": "tool", + "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!", + "name": "bob", + "tool_call_id": "call_llqga49DSQM9Ftf9vMhk0qac" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", + "parameters": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } }, { - "time": "2024-06-20T16:58:14.061001-04:00", + "time": "2024-08-23T10:52:23.026795-04:00", "callContext": { - "id": "1718917092", + "id": "1724424742", "tool": { "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, @@ -2576,10 +547,11 @@ }, "workingDir": "testdata/Bob" }, + "currentAgent": {}, "inputContext": null }, "type": "callChat", - "chatCompletionId": "1718917095", + "chatCompletionId": "1724424745", "usage": { "promptTokens": 179, "completionTokens": 18, @@ -2600,9 +572,9 @@ } }, { - "time": "2024-06-20T16:58:14.061031-04:00", + "time": "2024-08-23T10:52:23.026887-04:00", "callContext": { - "id": "1718917092", + "id": "1724424742", "tool": { "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, @@ -2629,6 +601,7 @@ }, "workingDir": "testdata/Bob" }, + "currentAgent": {}, "inputContext": null }, "type": "callFinish", @@ -2636,7 +609,7 @@ "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" }, { - "time": "2024-06-20T16:58:14.061047-04:00", + "time": "2024-08-23T10:52:23.026977-04:00", "type": "runFinish", "usage": {} } diff --git a/pkg/tests/smoke/testdata/Bob/gpt-4o-2024-08-06-expected.json b/pkg/tests/smoke/testdata/Bob/gpt-4o-2024-08-06-expected.json new file mode 100644 index 00000000..ebce34be --- /dev/null +++ b/pkg/tests/smoke/testdata/Bob/gpt-4o-2024-08-06-expected.json @@ -0,0 +1,616 @@ +[ + { + "time": "2024-08-23T11:30:01.577023-04:00", + "type": "runStart", + "usage": {} + }, + { + "time": "2024-08-23T11:30:01.577297-04:00", + "callContext": { + "id": "1724427002", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/Bob/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/Bob/test.gpt:bob" + } + ] + }, + "localTools": { + "": "testdata/Bob/test.gpt:", + "bob": "testdata/Bob/test.gpt:bob" + }, + "source": { + "location": "testdata/Bob/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/Bob" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callStart", + "usage": {} + }, + { + "time": "2024-08-23T11:30:01.577466-04:00", + "callContext": { + "id": "1724427002", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/Bob/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/Bob/test.gpt:bob" + } + ] + }, + "localTools": { + "": "testdata/Bob/test.gpt:", + "bob": "testdata/Bob/test.gpt:bob" + }, + "source": { + "location": "testdata/Bob/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/Bob" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724427003", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-08-06", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nAsk Bob \"how are you doing\" and repeat his reply exactly." + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", + "parameters": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T11:30:02.103572-04:00", + "callContext": { + "id": "1724427002", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/Bob/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/Bob/test.gpt:bob" + } + ] + }, + "localTools": { + "": "testdata/Bob/test.gpt:", + "bob": "testdata/Bob/test.gpt:bob" + }, + "source": { + "location": "testdata/Bob/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/Bob" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724427003", + "usage": { + "promptTokens": 138, + "completionTokens": 17, + "totalTokens": 155 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_k5gUMCNtxH9gKglmCEkjfWAR", + "function": { + "name": "bob", + "arguments": "{\"question\":\"how are you doing\"}" + } + } + } + ], + "usage": { + "promptTokens": 138, + "completionTokens": 17, + "totalTokens": 155 + } + } + }, + { + "time": "2024-08-23T11:30:02.103835-04:00", + "callContext": { + "id": "1724427002", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/Bob/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/Bob/test.gpt:bob" + } + ] + }, + "localTools": { + "": "testdata/Bob/test.gpt:", + "bob": "testdata/Bob/test.gpt:bob" + }, + "source": { + "location": "testdata/Bob/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/Bob" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolSubCalls": { + "call_k5gUMCNtxH9gKglmCEkjfWAR": { + "toolID": "testdata/Bob/test.gpt:bob", + "input": "{\"question\":\"how are you doing\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T11:30:02.103996-04:00", + "callContext": { + "id": "call_k5gUMCNtxH9gKglmCEkjfWAR", + "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", + "id": "testdata/Bob/test.gpt:bob", + "localTools": { + "": "testdata/Bob/test.gpt:", + "bob": "testdata/Bob/test.gpt:bob" + }, + "source": { + "location": "testdata/Bob/test.gpt", + "lineNo": 6 + }, + "workingDir": "testdata/Bob" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724427002" + }, + "type": "callStart", + "usage": {}, + "content": "{\"question\":\"how are you doing\"}" + }, + { + "time": "2024-08-23T11:30:02.104177-04:00", + "callContext": { + "id": "call_k5gUMCNtxH9gKglmCEkjfWAR", + "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", + "id": "testdata/Bob/test.gpt:bob", + "localTools": { + "": "testdata/Bob/test.gpt:", + "bob": "testdata/Bob/test.gpt:bob" + }, + "source": { + "location": "testdata/Bob/test.gpt", + "lineNo": 6 + }, + "workingDir": "testdata/Bob" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724427002" + }, + "type": "callChat", + "chatCompletionId": "1724427004", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-08-06", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nWhen asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"" + }, + { + "role": "user", + "content": "{\"question\":\"how are you doing\"}" + } + ], + "temperature": 0 + } + }, + { + "time": "2024-08-23T11:30:02.567871-04:00", + "callContext": { + "id": "call_k5gUMCNtxH9gKglmCEkjfWAR", + "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", + "id": "testdata/Bob/test.gpt:bob", + "localTools": { + "": "testdata/Bob/test.gpt:", + "bob": "testdata/Bob/test.gpt:bob" + }, + "source": { + "location": "testdata/Bob/test.gpt", + "lineNo": 6 + }, + "workingDir": "testdata/Bob" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724427002" + }, + "type": "callChat", + "chatCompletionId": "1724427004", + "usage": { + "promptTokens": 122, + "completionTokens": 14, + "totalTokens": 136 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!" + } + ], + "usage": { + "promptTokens": 122, + "completionTokens": 14, + "totalTokens": 136 + } + } + }, + { + "time": "2024-08-23T11:30:02.568006-04:00", + "callContext": { + "id": "call_k5gUMCNtxH9gKglmCEkjfWAR", + "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", + "id": "testdata/Bob/test.gpt:bob", + "localTools": { + "": "testdata/Bob/test.gpt:", + "bob": "testdata/Bob/test.gpt:bob" + }, + "source": { + "location": "testdata/Bob/test.gpt", + "lineNo": 6 + }, + "workingDir": "testdata/Bob" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724427002" + }, + "type": "callFinish", + "usage": {}, + "content": "Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!" + }, + { + "time": "2024-08-23T11:30:02.568167-04:00", + "callContext": { + "id": "1724427002", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/Bob/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/Bob/test.gpt:bob" + } + ] + }, + "localTools": { + "": "testdata/Bob/test.gpt:", + "bob": "testdata/Bob/test.gpt:bob" + }, + "source": { + "location": "testdata/Bob/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/Bob" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T11:30:02.568274-04:00", + "callContext": { + "id": "1724427002", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/Bob/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/Bob/test.gpt:bob" + } + ] + }, + "localTools": { + "": "testdata/Bob/test.gpt:", + "bob": "testdata/Bob/test.gpt:bob" + }, + "source": { + "location": "testdata/Bob/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/Bob" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724427005", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-08-06", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nAsk Bob \"how are you doing\" and repeat his reply exactly." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_k5gUMCNtxH9gKglmCEkjfWAR", + "type": "function", + "function": { + "name": "bob", + "arguments": "{\"question\":\"how are you doing\"}" + } + } + ] + }, + { + "role": "tool", + "content": "Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!", + "name": "bob", + "tool_call_id": "call_k5gUMCNtxH9gKglmCEkjfWAR" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", + "parameters": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T11:30:03.052817-04:00", + "callContext": { + "id": "1724427002", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/Bob/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/Bob/test.gpt:bob" + } + ] + }, + "localTools": { + "": "testdata/Bob/test.gpt:", + "bob": "testdata/Bob/test.gpt:bob" + }, + "source": { + "location": "testdata/Bob/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/Bob" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724427005", + "usage": { + "promptTokens": 176, + "completionTokens": 18, + "totalTokens": 194 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" + } + ], + "usage": { + "promptTokens": 176, + "completionTokens": 18, + "totalTokens": 194 + } + } + }, + { + "time": "2024-08-23T11:30:03.05287-04:00", + "callContext": { + "id": "1724427002", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/Bob/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/Bob/test.gpt:bob" + } + ] + }, + "localTools": { + "": "testdata/Bob/test.gpt:", + "bob": "testdata/Bob/test.gpt:bob" + }, + "source": { + "location": "testdata/Bob/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/Bob" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callFinish", + "usage": {}, + "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" + }, + { + "time": "2024-08-23T11:30:03.052914-04:00", + "type": "runFinish", + "usage": {} + } +] diff --git a/pkg/tests/smoke/testdata/Bob/mistral-large-2402-expected.json b/pkg/tests/smoke/testdata/Bob/mistral-large-2402-expected.json index 8730226a..c8775420 100644 --- a/pkg/tests/smoke/testdata/Bob/mistral-large-2402-expected.json +++ b/pkg/tests/smoke/testdata/Bob/mistral-large-2402-expected.json @@ -1,13 +1,13 @@ [ { - "time": "2024-07-03T10:53:01.406601-04:00", + "time": "2024-08-23T12:02:00.839221-04:00", "type": "runStart", "usage": {} }, { - "time": "2024-07-03T10:53:01.406888-04:00", + "time": "2024-08-23T12:02:00.839582-04:00", "callContext": { - "id": "1720018382", + "id": "1724428921", "tool": { "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", "internalPrompt": null, @@ -41,14 +41,14 @@ "usage": {} }, { - "time": "2024-07-03T10:53:02.106674-04:00", + "time": "2024-08-23T12:02:01.834156-04:00", "type": "runStart", "usage": {} }, { - "time": "2024-07-03T10:53:02.107085-04:00", + "time": "2024-08-23T12:02:01.834944-04:00", "callContext": { - "id": "1720018383", + "id": "1724428922", "tool": { "name": "Mistral La Plateforme Provider", "description": "Model provider for Mistral models running on La Plateforme", @@ -59,30 +59,30 @@ "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env" ], "instructions": "#!sys.daemon /usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/main.py", - "id": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/cbf1aeb6db495b9b6223984651d29ac511d2748d/tool.gpt:Mistral La Plateforme Provider", + "id": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt:Mistral La Plateforme Provider", "toolMapping": { "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env": [ { "reference": "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env", - "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/651dfad6e7cf3a385ef408afa93ce522c10f8508/tool.gpt:token" + "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/37e5f870e195b896438c0bc35867403a42f82e89/tool.gpt:token" } ] }, "localTools": { - "mistral la plateforme provider": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/cbf1aeb6db495b9b6223984651d29ac511d2748d/tool.gpt:Mistral La Plateforme Provider" + "mistral la plateforme provider": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt:Mistral La Plateforme Provider" }, "source": { - "location": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/cbf1aeb6db495b9b6223984651d29ac511d2748d/tool.gpt", + "location": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt", "lineNo": 1, "repo": { "VCS": "git", "Root": "https://github.com/gptscript-ai/mistral-laplateforme-provider.git", "Path": "/", "Name": "tool.gpt", - "Revision": "cbf1aeb6db495b9b6223984651d29ac511d2748d" + "Revision": "aa4353e7d1de7e90e1078bfbc88526266e587a64" } }, - "workingDir": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/cbf1aeb6db495b9b6223984651d29ac511d2748d" + "workingDir": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64" }, "currentAgent": {}, "inputContext": null, @@ -93,9 +93,9 @@ "usage": {} }, { - "time": "2024-07-03T10:53:03.125117-04:00", + "time": "2024-08-23T12:02:02.848161-04:00", "callContext": { - "id": "1720018383", + "id": "1724428922", "tool": { "name": "Mistral La Plateforme Provider", "description": "Model provider for Mistral models running on La Plateforme", @@ -106,30 +106,30 @@ "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env" ], "instructions": "#!sys.daemon /usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/main.py", - "id": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/cbf1aeb6db495b9b6223984651d29ac511d2748d/tool.gpt:Mistral La Plateforme Provider", + "id": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt:Mistral La Plateforme Provider", "toolMapping": { "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env": [ { "reference": "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env", - "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/651dfad6e7cf3a385ef408afa93ce522c10f8508/tool.gpt:token" + "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/37e5f870e195b896438c0bc35867403a42f82e89/tool.gpt:token" } ] }, "localTools": { - "mistral la plateforme provider": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/cbf1aeb6db495b9b6223984651d29ac511d2748d/tool.gpt:Mistral La Plateforme Provider" + "mistral la plateforme provider": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt:Mistral La Plateforme Provider" }, "source": { - "location": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/cbf1aeb6db495b9b6223984651d29ac511d2748d/tool.gpt", + "location": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt", "lineNo": 1, "repo": { "VCS": "git", "Root": "https://github.com/gptscript-ai/mistral-laplateforme-provider.git", "Path": "/", "Name": "tool.gpt", - "Revision": "cbf1aeb6db495b9b6223984651d29ac511d2748d" + "Revision": "aa4353e7d1de7e90e1078bfbc88526266e587a64" } }, - "workingDir": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/cbf1aeb6db495b9b6223984651d29ac511d2748d" + "workingDir": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64" }, "currentAgent": {}, "inputContext": null, @@ -138,17 +138,17 @@ }, "type": "callFinish", "usage": {}, - "content": "http://127.0.0.1:10244" + "content": "http://127.0.0.1:10437" }, { - "time": "2024-07-03T10:53:03.125375-04:00", + "time": "2024-08-23T12:02:02.848319-04:00", "type": "runFinish", "usage": {} }, { - "time": "2024-07-03T10:53:03.12547-04:00", + "time": "2024-08-23T12:02:02.848376-04:00", "callContext": { - "id": "1720018382", + "id": "1724428921", "tool": { "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", "internalPrompt": null, @@ -179,7 +179,7 @@ "inputContext": null }, "type": "callChat", - "chatCompletionId": "1720018384", + "chatCompletionId": "1724428923", "usage": {}, "chatRequest": { "model": "mistral-large-2402", @@ -211,122 +211,9 @@ } }, { - "time": "2024-07-03T10:53:03.126002-04:00", + "time": "2024-08-23T12:02:04.855513-04:00", "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018384", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-07-03T10:53:03.438634-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018384", - "usage": {} - }, - { - "time": "2024-07-03T10:53:03.917633-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018384", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\": \"how are you doing\"}" - }, - { - "time": "2024-07-03T10:53:03.9181-04:00", - "callContext": { - "id": "1720018382", + "id": "1724428921", "tool": { "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", "internalPrompt": null, @@ -357,7 +244,7 @@ "inputContext": null }, "type": "callChat", - "chatCompletionId": "1720018384", + "chatCompletionId": "1724428923", "usage": { "promptTokens": 188, "completionTokens": 23, @@ -369,7 +256,7 @@ { "toolCall": { "index": 0, - "id": "IePX3uH5y", + "id": "pIMgThIue", "function": { "name": "bob", "arguments": "{\"question\": \"how are you doing\"}" @@ -385,9 +272,9 @@ } }, { - "time": "2024-07-03T10:53:03.918447-04:00", + "time": "2024-08-23T12:02:04.855681-04:00", "callContext": { - "id": "1720018382", + "id": "1724428921", "tool": { "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", "internalPrompt": null, @@ -418,7 +305,7 @@ "inputContext": null }, "toolSubCalls": { - "IePX3uH5y": { + "pIMgThIue": { "toolID": "testdata/Bob/test.gpt:bob", "input": "{\"question\": \"how are you doing\"}" } @@ -427,9 +314,9 @@ "usage": {} }, { - "time": "2024-07-03T10:53:03.918585-04:00", + "time": "2024-08-23T12:02:04.855749-04:00", "callContext": { - "id": "IePX3uH5y", + "id": "pIMgThIue", "tool": { "name": "bob", "description": "I'm Bob, a friendly guy.", @@ -444,7 +331,7 @@ }, "type": "object" }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", @@ -459,16 +346,16 @@ "currentAgent": {}, "inputContext": null, "toolName": "bob", - "parentID": "1720018382" + "parentID": "1724428921" }, "type": "callStart", "usage": {}, "content": "{\"question\": \"how are you doing\"}" }, { - "time": "2024-07-03T10:53:04.089188-04:00", + "time": "2024-08-23T12:02:05.209879-04:00", "callContext": { - "id": "IePX3uH5y", + "id": "pIMgThIue", "tool": { "name": "bob", "description": "I'm Bob, a friendly guy.", @@ -483,7 +370,7 @@ }, "type": "object" }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", @@ -498,17 +385,17 @@ "currentAgent": {}, "inputContext": null, "toolName": "bob", - "parentID": "1720018382" + "parentID": "1724428921" }, "type": "callChat", - "chatCompletionId": "1720018385", + "chatCompletionId": "1724428924", "usage": {}, "chatRequest": { "model": "mistral-large-2402", "messages": [ { "role": "system", - "content": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"" + "content": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"" }, { "role": "user", @@ -519,9 +406,9 @@ } }, { - "time": "2024-07-03T10:53:04.089548-04:00", + "time": "2024-08-23T12:02:05.965183-04:00", "callContext": { - "id": "IePX3uH5y", + "id": "pIMgThIue", "tool": { "name": "bob", "description": "I'm Bob, a friendly guy.", @@ -536,7 +423,7 @@ }, "type": "object" }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", @@ -551,56 +438,33 @@ "currentAgent": {}, "inputContext": null, "toolName": "bob", - "parentID": "1720018382" + "parentID": "1724428921" }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-07-03T10:53:04.287287-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" + "type": "callChat", + "chatCompletionId": "1724428924", + "usage": { + "promptTokens": 145, + "completionTokens": 19, + "totalTokens": 164 }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {} + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" + } + ], + "usage": { + "promptTokens": 145, + "completionTokens": 19, + "totalTokens": 164 + } + } }, { - "time": "2024-07-03T10:53:04.287688-04:00", + "time": "2024-08-23T12:02:05.965343-04:00", "callContext": { - "id": "IePX3uH5y", + "id": "pIMgThIue", "tool": { "name": "bob", "description": "I'm Bob, a friendly guy.", @@ -615,7 +479,7 @@ }, "type": "object" }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", + "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"", "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", @@ -630,1981 +494,138 @@ "currentAgent": {}, "inputContext": null, "toolName": "bob", - "parentID": "1720018382" + "parentID": "1724428921" }, - "type": "callProgress", - "chatCompletionId": "1720018385", + "type": "callFinish", "usage": {}, - "content": "Thanks" + "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" }, { - "time": "2024-07-03T10:53:04.302879-04:00", + "time": "2024-08-23T12:02:05.965434-04:00", "callContext": { - "id": "IePX3uH5y", + "id": "1724428921", "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/Bob/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/Bob/test.gpt:bob" } - }, - "type": "object" + ] }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", "bob": "testdata/Bob/test.gpt:bob" }, "source": { "location": "testdata/Bob/test.gpt", - "lineNo": 6 + "lineNo": 1 }, "workingDir": "testdata/Bob" }, "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" + "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for" + "toolResults": 1, + "type": "callContinue", + "usage": {} }, { - "time": "2024-07-03T10:53:04.323886-04:00", + "time": "2024-08-23T12:02:06.194066-04:00", "callContext": { - "id": "IePX3uH5y", + "id": "1724428921", "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/Bob/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/Bob/test.gpt:bob" } - }, - "type": "object" + ] }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", "localTools": { "": "testdata/Bob/test.gpt:", "bob": "testdata/Bob/test.gpt:bob" }, "source": { "location": "testdata/Bob/test.gpt", - "lineNo": 6 + "lineNo": 1 }, "workingDir": "testdata/Bob" }, "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" + "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1720018385", + "type": "callChat", + "chatCompletionId": "1724428925", "usage": {}, - "content": "Thanks for asking" - }, - { - "time": "2024-07-03T10:53:04.345227-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" + "chatRequest": { + "model": "mistral-large-2402", + "messages": [ + { + "role": "system", + "content": "Ask Bob \"how are you doing\" and repeat his reply exactly." }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "pIMgThIue", + "type": "function", + "function": { + "name": "bob", + "arguments": "{\"question\": \"how are you doing\"}" + } + } + ] }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for asking \"" - }, - { - "time": "2024-07-03T10:53:04.364182-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for asking \"how" - }, - { - "time": "2024-07-03T10:53:04.387098-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for asking \"how are" - }, - { - "time": "2024-07-03T10:53:04.405872-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for asking \"how are you" - }, - { - "time": "2024-07-03T10:53:04.427749-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for asking \"how are you doing" - }, - { - "time": "2024-07-03T10:53:04.448563-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for asking \"how are you doing\"," - }, - { - "time": "2024-07-03T10:53:04.468026-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I" - }, - { - "time": "2024-07-03T10:53:04.490606-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'" - }, - { - "time": "2024-07-03T10:53:04.511171-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm" - }, - { - "time": "2024-07-03T10:53:04.531235-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing" - }, - { - "time": "2024-07-03T10:53:04.553855-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great" - }, - { - "time": "2024-07-03T10:53:04.574503-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow" - }, - { - "time": "2024-07-03T10:53:04.598055-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly" - }, - { - "time": "2024-07-03T10:53:04.613412-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI" - }, - { - "time": "2024-07-03T10:53:04.635897-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool" - }, - { - "time": "2024-07-03T10:53:04.656116-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-07-03T10:53:04.680962-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callProgress", - "chatCompletionId": "1720018385", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-07-03T10:53:04.681447-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callChat", - "chatCompletionId": "1720018385", - "usage": { - "promptTokens": 143, - "completionTokens": 19, - "totalTokens": 162 - }, - "chatResponse": { - "role": "assistant", - "content": [ - { - "text": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" - } - ], - "usage": { - "promptTokens": 143, - "completionTokens": 19, - "totalTokens": 162 - } - } - }, - { - "time": "2024-07-03T10:53:04.681598-04:00", - "callContext": { - "id": "IePX3uH5y", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "When asked how I am doing, respond with exactly \"Thanks for asking \"${question}\", I'm doing great fellow friendly AI tool!\"", - "id": "testdata/Bob/test.gpt:bob", - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 6 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018382" - }, - "type": "callFinish", - "usage": {}, - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-07-03T10:53:04.681725-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "toolResults": 1, - "type": "callContinue", - "usage": {} - }, - { - "time": "2024-07-03T10:53:04.842182-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callChat", - "chatCompletionId": "1720018386", - "usage": {}, - "chatRequest": { - "model": "mistral-large-2402", - "messages": [ - { - "role": "system", - "content": "Ask Bob \"how are you doing\" and repeat his reply exactly." - }, - { - "role": "assistant", - "content": "", - "tool_calls": [ - { - "id": "IePX3uH5y", - "type": "function", - "function": { - "name": "bob", - "arguments": "{\"question\": \"how are you doing\"}" - } - } - ] - }, - { - "role": "tool", - "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!", - "name": "bob", - "tool_call_id": "IePX3uH5y" - } - ], - "temperature": 0, - "tools": [ - { - "type": "function", - "function": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "parameters": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - } - } - } - ] - } - }, - { - "time": "2024-07-03T10:53:04.842685-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-07-03T10:53:05.384131-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {} - }, - { - "time": "2024-07-03T10:53:05.384657-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob" - }, - { - "time": "2024-07-03T10:53:05.404612-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said" - }, - { - "time": "2024-07-03T10:53:05.430068-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said," - }, - { - "time": "2024-07-03T10:53:05.452982-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"" - }, - { - "time": "2024-07-03T10:53:05.501525-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for" - }, - { - "time": "2024-07-03T10:53:05.50179-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for" - }, - { - "time": "2024-07-03T10:53:05.532152-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking" - }, - { - "time": "2024-07-03T10:53:05.553295-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking '" - }, - { - "time": "2024-07-03T10:53:05.576012-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking 'how" - }, - { - "time": "2024-07-03T10:53:05.602885-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking 'how are" - }, - { - "time": "2024-07-03T10:53:05.624751-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking 'how are you" - }, - { - "time": "2024-07-03T10:53:05.649543-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking 'how are you doing" - }, - { - "time": "2024-07-03T10:53:05.674199-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking 'how are you doing'," - }, - { - "time": "2024-07-03T10:53:05.697398-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking 'how are you doing', I" - }, - { - "time": "2024-07-03T10:53:05.725234-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking 'how are you doing', I'" - }, - { - "time": "2024-07-03T10:53:05.747687-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking 'how are you doing', I'm" - }, - { - "time": "2024-07-03T10:53:05.773761-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking 'how are you doing', I'm doing" - }, - { - "time": "2024-07-03T10:53:05.798352-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking 'how are you doing', I'm doing great" - }, - { - "time": "2024-07-03T10:53:05.823105-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking 'how are you doing', I'm doing great fellow" - }, - { - "time": "2024-07-03T10:53:05.846373-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking 'how are you doing', I'm doing great fellow friendly" - }, - { - "time": "2024-07-03T10:53:05.871647-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking 'how are you doing', I'm doing great fellow friendly AI" - }, - { - "time": "2024-07-03T10:53:05.895603-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking 'how are you doing', I'm doing great fellow friendly AI tool" - }, - { - "time": "2024-07-03T10:53:05.919754-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking 'how are you doing', I'm doing great fellow friendly AI tool!\"" - }, - { - "time": "2024-07-03T10:53:05.956244-04:00", - "callContext": { - "id": "1720018382", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/Bob/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/Bob/test.gpt:bob" + { + "role": "tool", + "content": "Thanks for asking \"how are you doing\", I'm doing great fellow friendly AI tool!", + "name": "bob", + "tool_call_id": "pIMgThIue" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", + "parameters": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" + } + }, + "type": "object" } - ] - }, - "localTools": { - "": "testdata/Bob/test.gpt:", - "bob": "testdata/Bob/test.gpt:bob" - }, - "source": { - "location": "testdata/Bob/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/Bob" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018386", - "usage": {}, - "content": "Bob said, \"Thanks for asking 'how are you doing', I'm doing great fellow friendly AI tool!\"" + } + } + ] + } }, { - "time": "2024-07-03T10:53:05.956647-04:00", + "time": "2024-08-23T12:02:07.70213-04:00", "callContext": { - "id": "1720018382", + "id": "1724428921", "tool": { "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", "internalPrompt": null, @@ -2635,7 +656,7 @@ "inputContext": null }, "type": "callChat", - "chatCompletionId": "1720018386", + "chatCompletionId": "1724428925", "usage": { "promptTokens": 246, "completionTokens": 23, @@ -2656,9 +677,9 @@ } }, { - "time": "2024-07-03T10:53:05.956695-04:00", + "time": "2024-08-23T12:02:07.702186-04:00", "callContext": { - "id": "1720018382", + "id": "1724428921", "tool": { "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", "internalPrompt": null, @@ -2693,7 +714,7 @@ "content": "Bob said, \"Thanks for asking 'how are you doing', I'm doing great fellow friendly AI tool!\"" }, { - "time": "2024-07-03T10:53:05.956743-04:00", + "time": "2024-08-23T12:02:07.702253-04:00", "type": "runFinish", "usage": {} } diff --git a/pkg/tests/smoke/testdata/BobAsShell/claude-3-5-sonnet-20240620-expected.json b/pkg/tests/smoke/testdata/BobAsShell/claude-3-5-sonnet-20240620-expected.json index 4f3dd9d7..3a2838ab 100644 --- a/pkg/tests/smoke/testdata/BobAsShell/claude-3-5-sonnet-20240620-expected.json +++ b/pkg/tests/smoke/testdata/BobAsShell/claude-3-5-sonnet-20240620-expected.json @@ -1,13 +1,13 @@ [ { - "time": "2024-07-02T19:39:48.881112-04:00", + "time": "2024-08-23T12:02:17.549859-04:00", "type": "runStart", "usage": {} }, { - "time": "2024-07-02T19:39:48.881306-04:00", + "time": "2024-08-23T12:02:17.55023-04:00", "callContext": { - "id": "1719963589", + "id": "1724428938", "tool": { "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", "internalPrompt": null, @@ -41,14 +41,14 @@ "usage": {} }, { - "time": "2024-07-02T19:39:49.304999-04:00", + "time": "2024-08-23T12:02:18.283201-04:00", "type": "runStart", "usage": {} }, { - "time": "2024-07-02T19:39:49.305331-04:00", + "time": "2024-08-23T12:02:18.28339-04:00", "callContext": { - "id": "1719963590", + "id": "1724428939", "tool": { "name": "Anthropic Claude3 Model Provider", "description": "Model provider for Anthropic hosted Claude3 models", @@ -59,30 +59,30 @@ "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env" ], "instructions": "#!sys.daemon /usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/main.py", - "id": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/6b5a88075b1e4501e845f4dab5be16ea8739aa4c/tool.gpt:Anthropic Claude3 Model Provider", + "id": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt:Anthropic Claude3 Model Provider", "toolMapping": { "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env": [ { "reference": "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env", - "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/651dfad6e7cf3a385ef408afa93ce522c10f8508/tool.gpt:token" + "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/37e5f870e195b896438c0bc35867403a42f82e89/tool.gpt:token" } ] }, "localTools": { - "anthropic claude3 model provider": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/6b5a88075b1e4501e845f4dab5be16ea8739aa4c/tool.gpt:Anthropic Claude3 Model Provider" + "anthropic claude3 model provider": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt:Anthropic Claude3 Model Provider" }, "source": { - "location": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/6b5a88075b1e4501e845f4dab5be16ea8739aa4c/tool.gpt", + "location": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt", "lineNo": 1, "repo": { "VCS": "git", "Root": "https://github.com/gptscript-ai/claude3-anthropic-provider.git", "Path": "/", "Name": "tool.gpt", - "Revision": "6b5a88075b1e4501e845f4dab5be16ea8739aa4c" + "Revision": "ee5c02a9aeca5a1cbffcf569751e37432bfe0344" } }, - "workingDir": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/6b5a88075b1e4501e845f4dab5be16ea8739aa4c" + "workingDir": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344" }, "currentAgent": {}, "inputContext": null, @@ -93,9 +93,9 @@ "usage": {} }, { - "time": "2024-07-02T19:39:50.324048-04:00", + "time": "2024-08-23T12:02:19.295369-04:00", "callContext": { - "id": "1719963590", + "id": "1724428939", "tool": { "name": "Anthropic Claude3 Model Provider", "description": "Model provider for Anthropic hosted Claude3 models", @@ -106,30 +106,30 @@ "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env" ], "instructions": "#!sys.daemon /usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/main.py", - "id": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/6b5a88075b1e4501e845f4dab5be16ea8739aa4c/tool.gpt:Anthropic Claude3 Model Provider", + "id": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt:Anthropic Claude3 Model Provider", "toolMapping": { "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env": [ { "reference": "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env", - "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/651dfad6e7cf3a385ef408afa93ce522c10f8508/tool.gpt:token" + "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/37e5f870e195b896438c0bc35867403a42f82e89/tool.gpt:token" } ] }, "localTools": { - "anthropic claude3 model provider": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/6b5a88075b1e4501e845f4dab5be16ea8739aa4c/tool.gpt:Anthropic Claude3 Model Provider" + "anthropic claude3 model provider": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt:Anthropic Claude3 Model Provider" }, "source": { - "location": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/6b5a88075b1e4501e845f4dab5be16ea8739aa4c/tool.gpt", + "location": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt", "lineNo": 1, "repo": { "VCS": "git", "Root": "https://github.com/gptscript-ai/claude3-anthropic-provider.git", "Path": "/", "Name": "tool.gpt", - "Revision": "6b5a88075b1e4501e845f4dab5be16ea8739aa4c" + "Revision": "ee5c02a9aeca5a1cbffcf569751e37432bfe0344" } }, - "workingDir": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/6b5a88075b1e4501e845f4dab5be16ea8739aa4c" + "workingDir": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344" }, "currentAgent": {}, "inputContext": null, @@ -138,17 +138,17 @@ }, "type": "callFinish", "usage": {}, - "content": "http://127.0.0.1:10585" + "content": "http://127.0.0.1:10739" }, { - "time": "2024-07-02T19:39:50.324287-04:00", + "time": "2024-08-23T12:02:19.295542-04:00", "type": "runFinish", "usage": {} }, { - "time": "2024-07-02T19:39:50.324366-04:00", + "time": "2024-08-23T12:02:19.295604-04:00", "callContext": { - "id": "1719963589", + "id": "1724428938", "tool": { "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", "internalPrompt": null, @@ -179,7 +179,7 @@ "inputContext": null }, "type": "callChat", - "chatCompletionId": "1719963591", + "chatCompletionId": "1724428940", "usage": {}, "chatRequest": { "model": "claude-3-5-sonnet-20240620", @@ -211,85 +211,9 @@ } }, { - "time": "2024-07-02T19:39:50.324921-04:00", + "time": "2024-08-23T12:02:21.136785-04:00", "callContext": { - "id": "1719963589", - "tool": { - "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1719963591", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-07-02T19:39:51.941234-04:00", - "callContext": { - "id": "1719963589", - "tool": { - "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1719963591", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\": \"how are you doing\"}" - }, - { - "time": "2024-07-02T19:39:51.941444-04:00", - "callContext": { - "id": "1719963589", + "id": "1724428938", "tool": { "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", "internalPrompt": null, @@ -320,7 +244,7 @@ "inputContext": null }, "type": "callChat", - "chatCompletionId": "1719963591", + "chatCompletionId": "1724428940", "usage": {}, "chatResponse": { "role": "assistant", @@ -328,7 +252,7 @@ { "toolCall": { "index": 0, - "id": "toolu_01SHRzoGuUEQtwBp2ktaqu7P", + "id": "toolu_01XzHFJpwHD8hzowvAqGgfSz", "function": { "name": "bob", "arguments": "{\"question\": \"how are you doing\"}" @@ -340,9 +264,9 @@ } }, { - "time": "2024-07-02T19:39:51.941523-04:00", + "time": "2024-08-23T12:02:21.136848-04:00", "callContext": { - "id": "1719963589", + "id": "1724428938", "tool": { "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", "internalPrompt": null, @@ -373,7 +297,7 @@ "inputContext": null }, "toolSubCalls": { - "toolu_01SHRzoGuUEQtwBp2ktaqu7P": { + "toolu_01XzHFJpwHD8hzowvAqGgfSz": { "toolID": "testdata/BobAsShell/test.gpt:bob", "input": "{\"question\": \"how are you doing\"}" } @@ -382,9 +306,9 @@ "usage": {} }, { - "time": "2024-07-02T19:39:51.941567-04:00", + "time": "2024-08-23T12:02:21.136877-04:00", "callContext": { - "id": "toolu_01SHRzoGuUEQtwBp2ktaqu7P", + "id": "toolu_01XzHFJpwHD8hzowvAqGgfSz", "tool": { "name": "bob", "description": "I'm Bob, a friendly guy.", @@ -399,7 +323,7 @@ }, "type": "object" }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", "id": "testdata/BobAsShell/test.gpt:bob", "localTools": { "": "testdata/BobAsShell/test.gpt:", @@ -414,7 +338,7 @@ "currentAgent": {}, "inputContext": null, "toolName": "bob", - "parentID": "1719963589", + "parentID": "1724428938", "displayText": "Running bob from testdata/BobAsShell/test.gpt" }, "type": "callStart", @@ -422,9 +346,9 @@ "content": "{\"question\": \"how are you doing\"}" }, { - "time": "2024-07-02T19:39:51.942241-04:00", + "time": "2024-08-23T12:02:21.137223-04:00", "callContext": { - "id": "toolu_01SHRzoGuUEQtwBp2ktaqu7P", + "id": "toolu_01XzHFJpwHD8hzowvAqGgfSz", "tool": { "name": "bob", "description": "I'm Bob, a friendly guy.", @@ -439,7 +363,7 @@ }, "type": "object" }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", "id": "testdata/BobAsShell/test.gpt:bob", "localTools": { "": "testdata/BobAsShell/test.gpt:", @@ -454,11 +378,11 @@ "currentAgent": {}, "inputContext": null, "toolName": "bob", - "parentID": "1719963589", + "parentID": "1724428938", "displayText": "Running bob from testdata/BobAsShell/test.gpt" }, "type": "callChat", - "chatCompletionId": "1719963592", + "chatCompletionId": "1724428941", "usage": {}, "chatRequest": { "model": "", @@ -466,9 +390,9 @@ } }, { - "time": "2024-07-02T19:39:51.945596-04:00", + "time": "2024-08-23T12:02:21.142624-04:00", "callContext": { - "id": "toolu_01SHRzoGuUEQtwBp2ktaqu7P", + "id": "toolu_01XzHFJpwHD8hzowvAqGgfSz", "tool": { "name": "bob", "description": "I'm Bob, a friendly guy.", @@ -483,7 +407,7 @@ }, "type": "object" }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", "id": "testdata/BobAsShell/test.gpt:bob", "localTools": { "": "testdata/BobAsShell/test.gpt:", @@ -498,61 +422,20 @@ "currentAgent": {}, "inputContext": null, "toolName": "bob", - "parentID": "1719963589", - "displayText": "Running bob from testdata/BobAsShell/test.gpt" - }, - "type": "callProgress", - "chatCompletionId": "1719963592", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n" - }, - { - "time": "2024-07-02T19:39:51.945769-04:00", - "callContext": { - "id": "toolu_01SHRzoGuUEQtwBp2ktaqu7P", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", - "id": "testdata/BobAsShell/test.gpt:bob", - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 7 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1719963589", + "parentID": "1724428938", "displayText": "Running bob from testdata/BobAsShell/test.gpt" }, "type": "callChat", - "chatCompletionId": "1719963592", + "chatCompletionId": "1724428941", "usage": {}, "chatResponse": { "usage": {} } }, { - "time": "2024-07-02T19:39:51.945833-04:00", + "time": "2024-08-23T12:02:21.142691-04:00", "callContext": { - "id": "toolu_01SHRzoGuUEQtwBp2ktaqu7P", + "id": "toolu_01XzHFJpwHD8hzowvAqGgfSz", "tool": { "name": "bob", "description": "I'm Bob, a friendly guy.", @@ -567,7 +450,7 @@ }, "type": "object" }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", "id": "testdata/BobAsShell/test.gpt:bob", "localTools": { "": "testdata/BobAsShell/test.gpt:", @@ -582,7 +465,7 @@ "currentAgent": {}, "inputContext": null, "toolName": "bob", - "parentID": "1719963589", + "parentID": "1724428938", "displayText": "Running bob from testdata/BobAsShell/test.gpt" }, "type": "callFinish", @@ -590,9 +473,9 @@ "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n" }, { - "time": "2024-07-02T19:39:51.945871-04:00", + "time": "2024-08-23T12:02:21.142723-04:00", "callContext": { - "id": "1719963589", + "id": "1724428938", "tool": { "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", "internalPrompt": null, @@ -627,9 +510,9 @@ "usage": {} }, { - "time": "2024-07-02T19:39:52.112712-04:00", + "time": "2024-08-23T12:02:21.371211-04:00", "callContext": { - "id": "1719963589", + "id": "1724428938", "tool": { "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", "internalPrompt": null, @@ -660,7 +543,7 @@ "inputContext": null }, "type": "callChat", - "chatCompletionId": "1719963593", + "chatCompletionId": "1724428942", "usage": {}, "chatRequest": { "model": "claude-3-5-sonnet-20240620", @@ -674,7 +557,7 @@ "content": "", "tool_calls": [ { - "id": "toolu_01SHRzoGuUEQtwBp2ktaqu7P", + "id": "toolu_01XzHFJpwHD8hzowvAqGgfSz", "type": "function", "function": { "name": "bob", @@ -687,7 +570,7 @@ "role": "tool", "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n", "name": "bob", - "tool_call_id": "toolu_01SHRzoGuUEQtwBp2ktaqu7P" + "tool_call_id": "toolu_01XzHFJpwHD8hzowvAqGgfSz" } ], "temperature": 0, @@ -712,85 +595,9 @@ } }, { - "time": "2024-07-02T19:39:52.11309-04:00", - "callContext": { - "id": "1719963589", - "tool": { - "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1719963593", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-07-02T19:39:53.567604-04:00", - "callContext": { - "id": "1719963589", - "tool": { - "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1719963593", - "usage": {}, - "content": "Bob's reply to the question \"how are you doing\" is:\n\n\"Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\"\n\nI have repeated his reply exactly as requested." - }, - { - "time": "2024-07-02T19:39:53.568556-04:00", + "time": "2024-08-23T12:02:23.102371-04:00", "callContext": { - "id": "1719963589", + "id": "1724428938", "tool": { "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", "internalPrompt": null, @@ -821,22 +628,22 @@ "inputContext": null }, "type": "callChat", - "chatCompletionId": "1719963593", + "chatCompletionId": "1724428942", "usage": {}, "chatResponse": { "role": "assistant", "content": [ { - "text": "Bob's reply to the question \"how are you doing\" is:\n\n\"Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\"\n\nI have repeated his reply exactly as requested." + "text": "Bob's reply was: \"Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\"" } ], "usage": {} } }, { - "time": "2024-07-02T19:39:53.568602-04:00", + "time": "2024-08-23T12:02:23.102422-04:00", "callContext": { - "id": "1719963589", + "id": "1724428938", "tool": { "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", "internalPrompt": null, @@ -868,10 +675,10 @@ }, "type": "callFinish", "usage": {}, - "content": "Bob's reply to the question \"how are you doing\" is:\n\n\"Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\"\n\nI have repeated his reply exactly as requested." + "content": "Bob's reply was: \"Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\"" }, { - "time": "2024-07-02T19:39:53.568622-04:00", + "time": "2024-08-23T12:02:23.102441-04:00", "type": "runFinish", "usage": {} } diff --git a/pkg/tests/smoke/testdata/BobAsShell/gpt-4-turbo-2024-04-09-expected.json b/pkg/tests/smoke/testdata/BobAsShell/gpt-4-turbo-2024-04-09-expected.json index 5b2409f6..d47555ba 100644 --- a/pkg/tests/smoke/testdata/BobAsShell/gpt-4-turbo-2024-04-09-expected.json +++ b/pkg/tests/smoke/testdata/BobAsShell/gpt-4-turbo-2024-04-09-expected.json @@ -1,13 +1,13 @@ [ { - "time": "2024-06-20T17:08:30.778302-04:00", + "time": "2024-08-23T12:02:28.827063-04:00", "type": "runStart", "usage": {} }, { - "time": "2024-06-20T17:08:30.778582-04:00", + "time": "2024-08-23T12:02:28.827338-04:00", "callContext": { - "id": "1718917711", + "id": "1724428949", "tool": { "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, @@ -34,15 +34,16 @@ }, "workingDir": "testdata/BobAsShell" }, + "currentAgent": {}, "inputContext": null }, "type": "callStart", "usage": {} }, { - "time": "2024-06-20T17:08:30.981266-04:00", + "time": "2024-08-23T12:02:28.827374-04:00", "callContext": { - "id": "1718917711", + "id": "1724428949", "tool": { "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, @@ -69,10 +70,11 @@ }, "workingDir": "testdata/BobAsShell" }, + "currentAgent": {}, "inputContext": null }, "type": "callChat", - "chatCompletionId": "1718917712", + "chatCompletionId": "1724428950", "usage": {}, "chatRequest": { "model": "gpt-4-turbo-2024-04-09", @@ -104,9 +106,9 @@ } }, { - "time": "2024-06-20T17:08:30.981391-04:00", + "time": "2024-08-23T12:02:29.713394-04:00", "callContext": { - "id": "1718917711", + "id": "1724428949", "tool": { "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, @@ -133,91 +135,41 @@ }, "workingDir": "testdata/BobAsShell" }, + "currentAgent": {}, "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1718917712", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-06-20T17:08:32.232987-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null + "type": "callChat", + "chatCompletionId": "1724428950", + "usage": { + "promptTokens": 142, + "completionTokens": 17, + "totalTokens": 159 }, - "type": "callProgress", - "chatCompletionId": "1718917712", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"" - }, - { - "time": "2024-06-20T17:08:32.233265-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_N8QA7cLBHO81vn2aMPl26ePU", + "function": { + "name": "bob", + "arguments": "{\"question\":\"how are you doing\"}" } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917712", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"" + } + } + ], + "usage": { + "promptTokens": 142, + "completionTokens": 17, + "totalTokens": 159 + } + } }, { - "time": "2024-06-20T17:08:32.344744-04:00", + "time": "2024-08-23T12:02:29.713517-04:00", "callContext": { - "id": "1718917711", + "id": "1724428949", "tool": { "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, @@ -244,165 +196,189 @@ }, "workingDir": "testdata/BobAsShell" }, + "currentAgent": {}, "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1718917712", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"" + "toolSubCalls": { + "call_N8QA7cLBHO81vn2aMPl26ePU": { + "toolID": "testdata/BobAsShell/test.gpt:bob", + "input": "{\"question\":\"how are you doing\"}" + } + }, + "type": "callSubCalls", + "usage": {} }, { - "time": "2024-06-20T17:08:32.344882-04:00", + "time": "2024-08-23T12:02:29.713591-04:00", "callContext": { - "id": "1718917711", + "id": "call_N8QA7cLBHO81vn2aMPl26ePU", "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" } - ] + }, + "type": "object" }, + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", + "id": "testdata/BobAsShell/test.gpt:bob", "localTools": { "": "testdata/BobAsShell/test.gpt:", "bob": "testdata/BobAsShell/test.gpt:bob" }, "source": { "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 + "lineNo": 7 }, "workingDir": "testdata/BobAsShell" }, - "inputContext": null + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724428949", + "displayText": "Running bob from testdata/BobAsShell/test.gpt" }, - "type": "callProgress", - "chatCompletionId": "1718917712", + "type": "callStart", "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"" + "content": "{\"question\":\"how are you doing\"}" }, { - "time": "2024-06-20T17:08:32.361676-04:00", + "time": "2024-08-23T12:02:29.714186-04:00", "callContext": { - "id": "1718917711", + "id": "call_N8QA7cLBHO81vn2aMPl26ePU", "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" } - ] + }, + "type": "object" }, + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", + "id": "testdata/BobAsShell/test.gpt:bob", "localTools": { "": "testdata/BobAsShell/test.gpt:", "bob": "testdata/BobAsShell/test.gpt:bob" }, "source": { "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 + "lineNo": 7 }, "workingDir": "testdata/BobAsShell" }, - "inputContext": null + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724428949", + "displayText": "Running bob from testdata/BobAsShell/test.gpt" }, - "type": "callProgress", - "chatCompletionId": "1718917712", + "type": "callChat", + "chatCompletionId": "1724428951", "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are" + "chatRequest": { + "model": "", + "messages": null + } }, { - "time": "2024-06-20T17:08:32.361793-04:00", + "time": "2024-08-23T12:02:29.725933-04:00", "callContext": { - "id": "1718917711", + "id": "call_N8QA7cLBHO81vn2aMPl26ePU", "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" } - ] + }, + "type": "object" }, + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", + "id": "testdata/BobAsShell/test.gpt:bob", "localTools": { "": "testdata/BobAsShell/test.gpt:", "bob": "testdata/BobAsShell/test.gpt:bob" }, "source": { "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 + "lineNo": 7 }, "workingDir": "testdata/BobAsShell" }, - "inputContext": null + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724428949", + "displayText": "Running bob from testdata/BobAsShell/test.gpt" }, - "type": "callProgress", - "chatCompletionId": "1718917712", + "type": "callChat", + "chatCompletionId": "1724428951", "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are" + "chatResponse": { + "usage": {} + } }, { - "time": "2024-06-20T17:08:32.440498-04:00", + "time": "2024-08-23T12:02:29.726078-04:00", "callContext": { - "id": "1718917711", + "id": "call_N8QA7cLBHO81vn2aMPl26ePU", "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" } - ] + }, + "type": "object" }, + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", + "id": "testdata/BobAsShell/test.gpt:bob", "localTools": { "": "testdata/BobAsShell/test.gpt:", "bob": "testdata/BobAsShell/test.gpt:bob" }, "source": { "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 + "lineNo": 7 }, "workingDir": "testdata/BobAsShell" }, - "inputContext": null + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724428949", + "displayText": "Running bob from testdata/BobAsShell/test.gpt" }, - "type": "callProgress", - "chatCompletionId": "1718917712", + "type": "callFinish", "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing" + "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n" }, { - "time": "2024-06-20T17:08:32.440743-04:00", + "time": "2024-08-23T12:02:29.726132-04:00", "callContext": { - "id": "1718917711", + "id": "1724428949", "tool": { "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, @@ -429,17 +405,17 @@ }, "workingDir": "testdata/BobAsShell" }, + "currentAgent": {}, "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1718917712", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing\"}" + "toolResults": 1, + "type": "callContinue", + "usage": {} }, { - "time": "2024-06-20T17:08:32.440798-04:00", + "time": "2024-08-23T12:02:29.726308-04:00", "callContext": { - "id": "1718917711", + "id": "1724428949", "tool": { "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, @@ -466,996 +442,65 @@ }, "workingDir": "testdata/BobAsShell" }, + "currentAgent": {}, "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1718917712", + "type": "callChat", + "chatCompletionId": "1724428952", "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T17:08:32.440836-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ + "chatRequest": { + "model": "gpt-4-turbo-2024-04-09", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nAsk Bob \"how are you doing\" and repeat his reply exactly." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" + "id": "call_N8QA7cLBHO81vn2aMPl26ePU", + "type": "function", + "function": { + "name": "bob", + "arguments": "{\"question\":\"how are you doing\"}" + } } ] }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917712", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T17:08:32.440873-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917712", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T17:08:32.441115-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callChat", - "chatCompletionId": "1718917712", - "usage": { - "promptTokens": 142, - "completionTokens": 17, - "totalTokens": 159 - }, - "chatResponse": { - "role": "assistant", - "content": [ { - "toolCall": { - "index": 0, - "id": "call_slFgd2P2lMxXQoyrPbm2YsrQ", - "function": { - "name": "bob", - "arguments": "{\"question\":\"how are you doing\"}" - } - } + "role": "tool", + "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n", + "name": "bob", + "tool_call_id": "call_N8QA7cLBHO81vn2aMPl26ePU" } ], - "usage": { - "promptTokens": 142, - "completionTokens": 17, - "totalTokens": 159 - } - } - }, - { - "time": "2024-06-20T17:08:32.441462-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "toolSubCalls": { - "call_slFgd2P2lMxXQoyrPbm2YsrQ": { - "toolID": "testdata/BobAsShell/test.gpt:bob", - "input": "{\"question\":\"how are you doing\"}" - } - }, - "type": "callSubCalls", - "usage": {} - }, - { - "time": "2024-06-20T17:08:32.441542-04:00", - "callContext": { - "id": "call_slFgd2P2lMxXQoyrPbm2YsrQ", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", - "id": "testdata/BobAsShell/test.gpt:bob", - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 7 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917711", - "displayText": "Running bob from testdata/BobAsShell/test.gpt" - }, - "type": "callStart", - "usage": {}, - "content": "{\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T17:08:32.442736-04:00", - "callContext": { - "id": "call_slFgd2P2lMxXQoyrPbm2YsrQ", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", + "parameters": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" + } + }, + "type": "object" } - }, - "type": "object" - }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", - "id": "testdata/BobAsShell/test.gpt:bob", - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 7 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917711", - "displayText": "Running bob from testdata/BobAsShell/test.gpt" - }, - "type": "callChat", - "chatCompletionId": "1718917713", - "usage": {}, - "chatRequest": { - "model": "", - "messages": null + } + } + ] } }, { - "time": "2024-06-20T17:08:32.448288-04:00", - "callContext": { - "id": "call_slFgd2P2lMxXQoyrPbm2YsrQ", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", - "id": "testdata/BobAsShell/test.gpt:bob", - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 7 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917711", - "displayText": "Running bob from testdata/BobAsShell/test.gpt" - }, - "type": "callProgress", - "chatCompletionId": "1718917713", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n" - }, - { - "time": "2024-06-20T17:08:32.448728-04:00", - "callContext": { - "id": "call_slFgd2P2lMxXQoyrPbm2YsrQ", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", - "id": "testdata/BobAsShell/test.gpt:bob", - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 7 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917711", - "displayText": "Running bob from testdata/BobAsShell/test.gpt" - }, - "type": "callChat", - "chatCompletionId": "1718917713", - "usage": {}, - "chatResponse": { - "usage": {} - } - }, - { - "time": "2024-06-20T17:08:32.448906-04:00", - "callContext": { - "id": "call_slFgd2P2lMxXQoyrPbm2YsrQ", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", - "id": "testdata/BobAsShell/test.gpt:bob", - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 7 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917711", - "displayText": "Running bob from testdata/BobAsShell/test.gpt" - }, - "type": "callFinish", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n" - }, - { - "time": "2024-06-20T17:08:32.448977-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "toolResults": 1, - "type": "callContinue", - "usage": {} - }, - { - "time": "2024-06-20T17:08:32.624086-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callChat", - "chatCompletionId": "1718917714", - "usage": {}, - "chatRequest": { - "model": "gpt-4-turbo-2024-04-09", - "messages": [ - { - "role": "system", - "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nAsk Bob \"how are you doing\" and repeat his reply exactly." - }, - { - "role": "assistant", - "content": "", - "tool_calls": [ - { - "id": "call_slFgd2P2lMxXQoyrPbm2YsrQ", - "type": "function", - "function": { - "name": "bob", - "arguments": "{\"question\":\"how are you doing\"}" - } - } - ] - }, - { - "role": "tool", - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n", - "name": "bob", - "tool_call_id": "call_slFgd2P2lMxXQoyrPbm2YsrQ" - } - ], - "temperature": 0, - "tools": [ - { - "type": "function", - "function": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "parameters": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - } - } - } - ] - } - }, - { - "time": "2024-06-20T17:08:32.624367-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917714", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-06-20T17:08:33.020025-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917714", - "usage": {}, - "content": "I" - }, - { - "time": "2024-06-20T17:08:33.020187-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917714", - "usage": {}, - "content": "I" - }, - { - "time": "2024-06-20T17:08:33.09047-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917714", - "usage": {}, - "content": "I'm doing" - }, - { - "time": "2024-06-20T17:08:33.090722-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917714", - "usage": {}, - "content": "I'm doing" - }, - { - "time": "2024-06-20T17:08:33.150983-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917714", - "usage": {}, - "content": "I'm doing great fellow" - }, - { - "time": "2024-06-20T17:08:33.151128-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917714", - "usage": {}, - "content": "I'm doing great fellow" - }, - { - "time": "2024-06-20T17:08:33.26424-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917714", - "usage": {}, - "content": "I'm doing great fellow friendly AI" - }, - { - "time": "2024-06-20T17:08:33.264352-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917714", - "usage": {}, - "content": "I'm doing great fellow friendly AI tool" - }, - { - "time": "2024-06-20T17:08:33.264393-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917714", - "usage": {}, - "content": "I'm doing great fellow friendly AI tool" - }, - { - "time": "2024-06-20T17:08:33.264427-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917714", - "usage": {}, - "content": "I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T17:08:33.264492-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917714", - "usage": {}, - "content": "I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T17:08:33.264575-04:00", - "callContext": { - "id": "1718917711", - "tool": { - "modelName": "gpt-4-turbo-2024-04-09", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917714", - "usage": {}, - "content": "I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T17:08:33.264897-04:00", + "time": "2024-08-23T12:02:30.671677-04:00", "callContext": { - "id": "1718917711", + "id": "1724428949", "tool": { "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, @@ -1482,10 +527,11 @@ }, "workingDir": "testdata/BobAsShell" }, + "currentAgent": {}, "inputContext": null }, "type": "callChat", - "chatCompletionId": "1718917714", + "chatCompletionId": "1724428952", "usage": { "promptTokens": 183, "completionTokens": 10, @@ -1506,9 +552,9 @@ } }, { - "time": "2024-06-20T17:08:33.264985-04:00", + "time": "2024-08-23T12:02:30.671782-04:00", "callContext": { - "id": "1718917711", + "id": "1724428949", "tool": { "modelName": "gpt-4-turbo-2024-04-09", "internalPrompt": null, @@ -1535,6 +581,7 @@ }, "workingDir": "testdata/BobAsShell" }, + "currentAgent": {}, "inputContext": null }, "type": "callFinish", @@ -1542,7 +589,7 @@ "content": "I'm doing great fellow friendly AI tool!" }, { - "time": "2024-06-20T17:08:33.265021-04:00", + "time": "2024-08-23T12:02:30.671853-04:00", "type": "runFinish", "usage": {} } diff --git a/pkg/tests/smoke/testdata/BobAsShell/gpt-4o-2024-05-13-expected.json b/pkg/tests/smoke/testdata/BobAsShell/gpt-4o-2024-05-13-expected.json index f61edd7d..565b6b54 100644 --- a/pkg/tests/smoke/testdata/BobAsShell/gpt-4o-2024-05-13-expected.json +++ b/pkg/tests/smoke/testdata/BobAsShell/gpt-4o-2024-05-13-expected.json @@ -1,13 +1,13 @@ [ { - "time": "2024-06-20T16:58:14.093283-04:00", + "time": "2024-08-23T12:02:21.894088-04:00", "type": "runStart", "usage": {} }, { - "time": "2024-06-20T16:58:14.093568-04:00", + "time": "2024-08-23T12:02:21.894448-04:00", "callContext": { - "id": "1718917095", + "id": "1724428942", "tool": { "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, @@ -34,15 +34,16 @@ }, "workingDir": "testdata/BobAsShell" }, + "currentAgent": {}, "inputContext": null }, "type": "callStart", "usage": {} }, { - "time": "2024-06-20T16:58:14.31069-04:00", + "time": "2024-08-23T12:02:21.894496-04:00", "callContext": { - "id": "1718917095", + "id": "1724428942", "tool": { "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, @@ -69,10 +70,11 @@ }, "workingDir": "testdata/BobAsShell" }, + "currentAgent": {}, "inputContext": null }, "type": "callChat", - "chatCompletionId": "1718917096", + "chatCompletionId": "1724428943", "usage": {}, "chatRequest": { "model": "gpt-4o-2024-05-13", @@ -104,9 +106,9 @@ } }, { - "time": "2024-06-20T16:58:14.311071-04:00", + "time": "2024-08-23T12:02:22.83529-04:00", "callContext": { - "id": "1718917095", + "id": "1724428942", "tool": { "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, @@ -133,91 +135,41 @@ }, "workingDir": "testdata/BobAsShell" }, + "currentAgent": {}, "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1718917096", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-06-20T16:58:14.807492-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null + "type": "callChat", + "chatCompletionId": "1724428943", + "usage": { + "promptTokens": 138, + "completionTokens": 17, + "totalTokens": 155 }, - "type": "callProgress", - "chatCompletionId": "1718917096", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"" - }, - { - "time": "2024-06-20T16:58:14.807779-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_pB38ObWgS96V6gFLrkCcw1pu", + "function": { + "name": "bob", + "arguments": "{\"question\":\"how are you doing\"}" } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917096", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"" + } + } + ], + "usage": { + "promptTokens": 138, + "completionTokens": 17, + "totalTokens": 155 + } + } }, { - "time": "2024-06-20T16:58:14.832551-04:00", + "time": "2024-08-23T12:02:22.835575-04:00", "callContext": { - "id": "1718917095", + "id": "1724428942", "tool": { "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, @@ -244,165 +196,189 @@ }, "workingDir": "testdata/BobAsShell" }, + "currentAgent": {}, "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1718917096", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"" + "toolSubCalls": { + "call_pB38ObWgS96V6gFLrkCcw1pu": { + "toolID": "testdata/BobAsShell/test.gpt:bob", + "input": "{\"question\":\"how are you doing\"}" + } + }, + "type": "callSubCalls", + "usage": {} }, { - "time": "2024-06-20T16:58:14.832684-04:00", + "time": "2024-08-23T12:02:22.835716-04:00", "callContext": { - "id": "1718917095", + "id": "call_pB38ObWgS96V6gFLrkCcw1pu", "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" } - ] + }, + "type": "object" }, + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", + "id": "testdata/BobAsShell/test.gpt:bob", "localTools": { "": "testdata/BobAsShell/test.gpt:", "bob": "testdata/BobAsShell/test.gpt:bob" }, "source": { "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 + "lineNo": 7 }, "workingDir": "testdata/BobAsShell" }, - "inputContext": null + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724428942", + "displayText": "Running bob from testdata/BobAsShell/test.gpt" }, - "type": "callProgress", - "chatCompletionId": "1718917096", + "type": "callStart", "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"" + "content": "{\"question\":\"how are you doing\"}" }, { - "time": "2024-06-20T16:58:14.865368-04:00", + "time": "2024-08-23T12:02:22.836811-04:00", "callContext": { - "id": "1718917095", + "id": "call_pB38ObWgS96V6gFLrkCcw1pu", "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" } - ] + }, + "type": "object" }, + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", + "id": "testdata/BobAsShell/test.gpt:bob", "localTools": { "": "testdata/BobAsShell/test.gpt:", "bob": "testdata/BobAsShell/test.gpt:bob" }, "source": { "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 + "lineNo": 7 }, "workingDir": "testdata/BobAsShell" }, - "inputContext": null + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724428942", + "displayText": "Running bob from testdata/BobAsShell/test.gpt" }, - "type": "callProgress", - "chatCompletionId": "1718917096", + "type": "callChat", + "chatCompletionId": "1724428944", "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are" + "chatRequest": { + "model": "", + "messages": null + } }, { - "time": "2024-06-20T16:58:14.865484-04:00", + "time": "2024-08-23T12:02:22.847861-04:00", "callContext": { - "id": "1718917095", + "id": "call_pB38ObWgS96V6gFLrkCcw1pu", "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" } - ] + }, + "type": "object" }, + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", + "id": "testdata/BobAsShell/test.gpt:bob", "localTools": { "": "testdata/BobAsShell/test.gpt:", "bob": "testdata/BobAsShell/test.gpt:bob" }, "source": { "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 + "lineNo": 7 }, "workingDir": "testdata/BobAsShell" }, - "inputContext": null + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724428942", + "displayText": "Running bob from testdata/BobAsShell/test.gpt" }, - "type": "callProgress", - "chatCompletionId": "1718917096", + "type": "callChat", + "chatCompletionId": "1724428944", "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are" + "chatResponse": { + "usage": {} + } }, { - "time": "2024-06-20T16:58:14.899511-04:00", + "time": "2024-08-23T12:02:22.848037-04:00", "callContext": { - "id": "1718917095", + "id": "call_pB38ObWgS96V6gFLrkCcw1pu", "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" } - ] + }, + "type": "object" }, + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", + "id": "testdata/BobAsShell/test.gpt:bob", "localTools": { "": "testdata/BobAsShell/test.gpt:", "bob": "testdata/BobAsShell/test.gpt:bob" }, "source": { "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 + "lineNo": 7 }, "workingDir": "testdata/BobAsShell" }, - "inputContext": null + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724428942", + "displayText": "Running bob from testdata/BobAsShell/test.gpt" }, - "type": "callProgress", - "chatCompletionId": "1718917096", + "type": "callFinish", "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing" + "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n" }, { - "time": "2024-06-20T16:58:14.899668-04:00", + "time": "2024-08-23T12:02:22.848097-04:00", "callContext": { - "id": "1718917095", + "id": "1724428942", "tool": { "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, @@ -429,17 +405,17 @@ }, "workingDir": "testdata/BobAsShell" }, + "currentAgent": {}, "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1718917096", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing" + "toolResults": 1, + "type": "callContinue", + "usage": {} }, { - "time": "2024-06-20T16:58:14.900883-04:00", + "time": "2024-08-23T12:02:22.848264-04:00", "callContext": { - "id": "1718917095", + "id": "1724428942", "tool": { "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, @@ -466,1255 +442,65 @@ }, "workingDir": "testdata/BobAsShell" }, + "currentAgent": {}, "inputContext": null }, - "type": "callProgress", - "chatCompletionId": "1718917096", + "type": "callChat", + "chatCompletionId": "1724428945", "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T16:58:14.900938-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ + "chatRequest": { + "model": "gpt-4o-2024-05-13", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nAsk Bob \"how are you doing\" and repeat his reply exactly." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" + "id": "call_pB38ObWgS96V6gFLrkCcw1pu", + "type": "function", + "function": { + "name": "bob", + "arguments": "{\"question\":\"how are you doing\"}" + } } ] }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917096", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T16:58:14.900969-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917096", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T16:58:14.901222-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callChat", - "chatCompletionId": "1718917096", - "usage": { - "promptTokens": 138, - "completionTokens": 17, - "totalTokens": 155 - }, - "chatResponse": { - "role": "assistant", - "content": [ { - "toolCall": { - "index": 0, - "id": "call_PGLxooO6eBPt3eSEBCMkuWYN", - "function": { - "name": "bob", - "arguments": "{\"question\":\"how are you doing\"}" - } - } + "role": "tool", + "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n", + "name": "bob", + "tool_call_id": "call_pB38ObWgS96V6gFLrkCcw1pu" } ], - "usage": { - "promptTokens": 138, - "completionTokens": 17, - "totalTokens": 155 - } - } - }, - { - "time": "2024-06-20T16:58:14.901521-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "toolSubCalls": { - "call_PGLxooO6eBPt3eSEBCMkuWYN": { - "toolID": "testdata/BobAsShell/test.gpt:bob", - "input": "{\"question\":\"how are you doing\"}" - } - }, - "type": "callSubCalls", - "usage": {} - }, - { - "time": "2024-06-20T16:58:14.901599-04:00", - "callContext": { - "id": "call_PGLxooO6eBPt3eSEBCMkuWYN", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", - "id": "testdata/BobAsShell/test.gpt:bob", - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 7 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917095", - "displayText": "Running bob from testdata/BobAsShell/test.gpt" - }, - "type": "callStart", - "usage": {}, - "content": "{\"question\":\"how are you doing\"}" - }, - { - "time": "2024-06-20T16:58:14.90268-04:00", - "callContext": { - "id": "call_PGLxooO6eBPt3eSEBCMkuWYN", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", + "parameters": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" + } + }, + "type": "object" } - }, - "type": "object" - }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", - "id": "testdata/BobAsShell/test.gpt:bob", - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 7 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917095", - "displayText": "Running bob from testdata/BobAsShell/test.gpt" - }, - "type": "callChat", - "chatCompletionId": "1718917097", - "usage": {}, - "chatRequest": { - "model": "", - "messages": null + } + } + ] } }, { - "time": "2024-06-20T16:58:14.908538-04:00", - "callContext": { - "id": "call_PGLxooO6eBPt3eSEBCMkuWYN", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", - "id": "testdata/BobAsShell/test.gpt:bob", - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 7 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917095", - "displayText": "Running bob from testdata/BobAsShell/test.gpt" - }, - "type": "callProgress", - "chatCompletionId": "1718917097", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n" - }, - { - "time": "2024-06-20T16:58:14.908991-04:00", - "callContext": { - "id": "call_PGLxooO6eBPt3eSEBCMkuWYN", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", - "id": "testdata/BobAsShell/test.gpt:bob", - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 7 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917095", - "displayText": "Running bob from testdata/BobAsShell/test.gpt" - }, - "type": "callChat", - "chatCompletionId": "1718917097", - "usage": {}, - "chatResponse": { - "usage": {} - } - }, - { - "time": "2024-06-20T16:58:14.909126-04:00", - "callContext": { - "id": "call_PGLxooO6eBPt3eSEBCMkuWYN", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", - "id": "testdata/BobAsShell/test.gpt:bob", - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 7 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null, - "toolName": "bob", - "parentID": "1718917095", - "displayText": "Running bob from testdata/BobAsShell/test.gpt" - }, - "type": "callFinish", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n" - }, - { - "time": "2024-06-20T16:58:14.909293-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "toolResults": 1, - "type": "callContinue", - "usage": {} - }, - { - "time": "2024-06-20T16:58:15.10962-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callChat", - "chatCompletionId": "1718917098", - "usage": {}, - "chatRequest": { - "model": "gpt-4o-2024-05-13", - "messages": [ - { - "role": "system", - "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nAsk Bob \"how are you doing\" and repeat his reply exactly." - }, - { - "role": "assistant", - "content": "", - "tool_calls": [ - { - "id": "call_PGLxooO6eBPt3eSEBCMkuWYN", - "type": "function", - "function": { - "name": "bob", - "arguments": "{\"question\":\"how are you doing\"}" - } - } - ] - }, - { - "role": "tool", - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n", - "name": "bob", - "tool_call_id": "call_PGLxooO6eBPt3eSEBCMkuWYN" - } - ], - "temperature": 0, - "tools": [ - { - "type": "function", - "function": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "parameters": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - } - } - } - ] - } - }, - { - "time": "2024-06-20T16:58:15.110087-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-06-20T16:58:15.629792-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks" - }, - { - "time": "2024-06-20T16:58:15.629968-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks" - }, - { - "time": "2024-06-20T16:58:15.749206-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks for" - }, - { - "time": "2024-06-20T16:58:15.749324-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks for asking" - }, - { - "time": "2024-06-20T16:58:15.780062-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks for asking how are" - }, - { - "time": "2024-06-20T16:58:15.780171-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks for asking how are you" - }, - { - "time": "2024-06-20T16:58:15.780293-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks for asking how are you doing" - }, - { - "time": "2024-06-20T16:58:15.780335-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks for asking how are you doing" - }, - { - "time": "2024-06-20T16:58:15.780406-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm" - }, - { - "time": "2024-06-20T16:58:15.780445-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm" - }, - { - "time": "2024-06-20T16:58:15.780477-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing" - }, - { - "time": "2024-06-20T16:58:15.780511-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great" - }, - { - "time": "2024-06-20T16:58:15.816742-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly" - }, - { - "time": "2024-06-20T16:58:15.816889-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly" - }, - { - "time": "2024-06-20T16:58:15.859699-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool" - }, - { - "time": "2024-06-20T16:58:15.859764-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T16:58:15.859784-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T16:58:15.859841-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T16:58:15.85986-04:00", - "callContext": { - "id": "1718917095", - "tool": { - "modelName": "gpt-4o-2024-05-13", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1718917098", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!" - }, - { - "time": "2024-06-20T16:58:15.860819-04:00", + "time": "2024-08-23T12:02:23.374142-04:00", "callContext": { - "id": "1718917095", + "id": "1724428942", "tool": { "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, @@ -1741,10 +527,11 @@ }, "workingDir": "testdata/BobAsShell" }, + "currentAgent": {}, "inputContext": null }, "type": "callChat", - "chatCompletionId": "1718917098", + "chatCompletionId": "1724428945", "usage": { "promptTokens": 178, "completionTokens": 17, @@ -1765,9 +552,9 @@ } }, { - "time": "2024-06-20T16:58:15.860872-04:00", + "time": "2024-08-23T12:02:23.37416-04:00", "callContext": { - "id": "1718917095", + "id": "1724428942", "tool": { "modelName": "gpt-4o-2024-05-13", "internalPrompt": null, @@ -1794,6 +581,7 @@ }, "workingDir": "testdata/BobAsShell" }, + "currentAgent": {}, "inputContext": null }, "type": "callFinish", @@ -1801,7 +589,7 @@ "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!" }, { - "time": "2024-06-20T16:58:15.860919-04:00", + "time": "2024-08-23T12:02:23.374173-04:00", "type": "runFinish", "usage": {} } diff --git a/pkg/tests/smoke/testdata/BobAsShell/gpt-4o-2024-08-06-expected.json b/pkg/tests/smoke/testdata/BobAsShell/gpt-4o-2024-08-06-expected.json new file mode 100644 index 00000000..23fe9c9d --- /dev/null +++ b/pkg/tests/smoke/testdata/BobAsShell/gpt-4o-2024-08-06-expected.json @@ -0,0 +1,596 @@ +[ + { + "time": "2024-08-23T10:47:06.912223-04:00", + "type": "runStart", + "usage": {} + }, + { + "time": "2024-08-23T10:47:06.912642-04:00", + "callContext": { + "id": "1724424427", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/BobAsShell/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/BobAsShell/test.gpt:bob" + } + ] + }, + "localTools": { + "": "testdata/BobAsShell/test.gpt:", + "bob": "testdata/BobAsShell/test.gpt:bob" + }, + "source": { + "location": "testdata/BobAsShell/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/BobAsShell" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callStart", + "usage": {} + }, + { + "time": "2024-08-23T10:47:06.912689-04:00", + "callContext": { + "id": "1724424427", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/BobAsShell/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/BobAsShell/test.gpt:bob" + } + ] + }, + "localTools": { + "": "testdata/BobAsShell/test.gpt:", + "bob": "testdata/BobAsShell/test.gpt:bob" + }, + "source": { + "location": "testdata/BobAsShell/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/BobAsShell" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724424428", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-08-06", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nAsk Bob \"how are you doing\" and repeat his reply exactly." + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", + "parameters": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T10:47:07.441483-04:00", + "callContext": { + "id": "1724424427", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/BobAsShell/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/BobAsShell/test.gpt:bob" + } + ] + }, + "localTools": { + "": "testdata/BobAsShell/test.gpt:", + "bob": "testdata/BobAsShell/test.gpt:bob" + }, + "source": { + "location": "testdata/BobAsShell/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/BobAsShell" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724424428", + "usage": { + "promptTokens": 138, + "completionTokens": 17, + "totalTokens": 155 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_NjCLsJjY7PegUkXOqx5DA0o0", + "function": { + "name": "bob", + "arguments": "{\"question\":\"how are you doing\"}" + } + } + } + ], + "usage": { + "promptTokens": 138, + "completionTokens": 17, + "totalTokens": 155 + } + } + }, + { + "time": "2024-08-23T10:47:07.441781-04:00", + "callContext": { + "id": "1724424427", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/BobAsShell/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/BobAsShell/test.gpt:bob" + } + ] + }, + "localTools": { + "": "testdata/BobAsShell/test.gpt:", + "bob": "testdata/BobAsShell/test.gpt:bob" + }, + "source": { + "location": "testdata/BobAsShell/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/BobAsShell" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolSubCalls": { + "call_NjCLsJjY7PegUkXOqx5DA0o0": { + "toolID": "testdata/BobAsShell/test.gpt:bob", + "input": "{\"question\":\"how are you doing\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T10:47:07.441904-04:00", + "callContext": { + "id": "call_NjCLsJjY7PegUkXOqx5DA0o0", + "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", + "id": "testdata/BobAsShell/test.gpt:bob", + "localTools": { + "": "testdata/BobAsShell/test.gpt:", + "bob": "testdata/BobAsShell/test.gpt:bob" + }, + "source": { + "location": "testdata/BobAsShell/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/BobAsShell" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724424427", + "displayText": "Running bob from testdata/BobAsShell/test.gpt" + }, + "type": "callStart", + "usage": {}, + "content": "{\"question\":\"how are you doing\"}" + }, + { + "time": "2024-08-23T10:47:07.443055-04:00", + "callContext": { + "id": "call_NjCLsJjY7PegUkXOqx5DA0o0", + "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", + "id": "testdata/BobAsShell/test.gpt:bob", + "localTools": { + "": "testdata/BobAsShell/test.gpt:", + "bob": "testdata/BobAsShell/test.gpt:bob" + }, + "source": { + "location": "testdata/BobAsShell/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/BobAsShell" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724424427", + "displayText": "Running bob from testdata/BobAsShell/test.gpt" + }, + "type": "callChat", + "chatCompletionId": "1724424429", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T10:47:07.453557-04:00", + "callContext": { + "id": "call_NjCLsJjY7PegUkXOqx5DA0o0", + "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", + "id": "testdata/BobAsShell/test.gpt:bob", + "localTools": { + "": "testdata/BobAsShell/test.gpt:", + "bob": "testdata/BobAsShell/test.gpt:bob" + }, + "source": { + "location": "testdata/BobAsShell/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/BobAsShell" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724424427", + "displayText": "Running bob from testdata/BobAsShell/test.gpt" + }, + "type": "callChat", + "chatCompletionId": "1724424429", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T10:47:07.453768-04:00", + "callContext": { + "id": "call_NjCLsJjY7PegUkXOqx5DA0o0", + "tool": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", + "id": "testdata/BobAsShell/test.gpt:bob", + "localTools": { + "": "testdata/BobAsShell/test.gpt:", + "bob": "testdata/BobAsShell/test.gpt:bob" + }, + "source": { + "location": "testdata/BobAsShell/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/BobAsShell" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "bob", + "parentID": "1724424427", + "displayText": "Running bob from testdata/BobAsShell/test.gpt" + }, + "type": "callFinish", + "usage": {}, + "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n" + }, + { + "time": "2024-08-23T10:47:07.453868-04:00", + "callContext": { + "id": "1724424427", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/BobAsShell/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/BobAsShell/test.gpt:bob" + } + ] + }, + "localTools": { + "": "testdata/BobAsShell/test.gpt:", + "bob": "testdata/BobAsShell/test.gpt:bob" + }, + "source": { + "location": "testdata/BobAsShell/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/BobAsShell" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T10:47:07.453942-04:00", + "callContext": { + "id": "1724424427", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/BobAsShell/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/BobAsShell/test.gpt:bob" + } + ] + }, + "localTools": { + "": "testdata/BobAsShell/test.gpt:", + "bob": "testdata/BobAsShell/test.gpt:bob" + }, + "source": { + "location": "testdata/BobAsShell/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/BobAsShell" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724424430", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-08-06", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nAsk Bob \"how are you doing\" and repeat his reply exactly." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_NjCLsJjY7PegUkXOqx5DA0o0", + "type": "function", + "function": { + "name": "bob", + "arguments": "{\"question\":\"how are you doing\"}" + } + } + ] + }, + { + "role": "tool", + "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n", + "name": "bob", + "tool_call_id": "call_NjCLsJjY7PegUkXOqx5DA0o0" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "bob", + "description": "I'm Bob, a friendly guy.", + "parameters": { + "properties": { + "question": { + "description": "The question to ask Bob.", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T10:47:07.950943-04:00", + "callContext": { + "id": "1724424427", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/BobAsShell/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/BobAsShell/test.gpt:bob" + } + ] + }, + "localTools": { + "": "testdata/BobAsShell/test.gpt:", + "bob": "testdata/BobAsShell/test.gpt:bob" + }, + "source": { + "location": "testdata/BobAsShell/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/BobAsShell" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724424430", + "usage": { + "promptTokens": 178, + "completionTokens": 17, + "totalTokens": 195 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!" + } + ], + "usage": { + "promptTokens": 178, + "completionTokens": 17, + "totalTokens": 195 + } + } + }, + { + "time": "2024-08-23T10:47:07.951019-04:00", + "callContext": { + "id": "1724424427", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "bob" + ], + "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", + "id": "testdata/BobAsShell/test.gpt:", + "toolMapping": { + "bob": [ + { + "reference": "bob", + "toolID": "testdata/BobAsShell/test.gpt:bob" + } + ] + }, + "localTools": { + "": "testdata/BobAsShell/test.gpt:", + "bob": "testdata/BobAsShell/test.gpt:bob" + }, + "source": { + "location": "testdata/BobAsShell/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/BobAsShell" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callFinish", + "usage": {}, + "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!" + }, + { + "time": "2024-08-23T10:47:07.951093-04:00", + "type": "runFinish", + "usage": {} + } +] diff --git a/pkg/tests/smoke/testdata/BobAsShell/mistral-large-2402-expected.json b/pkg/tests/smoke/testdata/BobAsShell/mistral-large-2402-expected.json index 43df5fa7..6dc41a08 100644 --- a/pkg/tests/smoke/testdata/BobAsShell/mistral-large-2402-expected.json +++ b/pkg/tests/smoke/testdata/BobAsShell/mistral-large-2402-expected.json @@ -1,13 +1,13 @@ [ { - "time": "2024-07-03T10:53:05.993864-04:00", + "time": "2024-08-23T12:02:07.951538-04:00", "type": "runStart", "usage": {} }, { - "time": "2024-07-03T10:53:05.99419-04:00", + "time": "2024-08-23T12:02:07.951742-04:00", "callContext": { - "id": "1720018386", + "id": "1724428928", "tool": { "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", "internalPrompt": null, @@ -41,14 +41,14 @@ "usage": {} }, { - "time": "2024-07-03T10:53:06.366435-04:00", + "time": "2024-08-23T12:02:08.65216-04:00", "type": "runStart", "usage": {} }, { - "time": "2024-07-03T10:53:06.366952-04:00", + "time": "2024-08-23T12:02:08.65229-04:00", "callContext": { - "id": "1720018387", + "id": "1724428929", "tool": { "name": "Mistral La Plateforme Provider", "description": "Model provider for Mistral models running on La Plateforme", @@ -59,30 +59,30 @@ "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env" ], "instructions": "#!sys.daemon /usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/main.py", - "id": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/cbf1aeb6db495b9b6223984651d29ac511d2748d/tool.gpt:Mistral La Plateforme Provider", + "id": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt:Mistral La Plateforme Provider", "toolMapping": { "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env": [ { "reference": "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env", - "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/651dfad6e7cf3a385ef408afa93ce522c10f8508/tool.gpt:token" + "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/37e5f870e195b896438c0bc35867403a42f82e89/tool.gpt:token" } ] }, "localTools": { - "mistral la plateforme provider": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/cbf1aeb6db495b9b6223984651d29ac511d2748d/tool.gpt:Mistral La Plateforme Provider" + "mistral la plateforme provider": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt:Mistral La Plateforme Provider" }, "source": { - "location": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/cbf1aeb6db495b9b6223984651d29ac511d2748d/tool.gpt", + "location": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt", "lineNo": 1, "repo": { "VCS": "git", "Root": "https://github.com/gptscript-ai/mistral-laplateforme-provider.git", "Path": "/", "Name": "tool.gpt", - "Revision": "cbf1aeb6db495b9b6223984651d29ac511d2748d" + "Revision": "aa4353e7d1de7e90e1078bfbc88526266e587a64" } }, - "workingDir": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/cbf1aeb6db495b9b6223984651d29ac511d2748d" + "workingDir": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64" }, "currentAgent": {}, "inputContext": null, @@ -93,9 +93,9 @@ "usage": {} }, { - "time": "2024-07-03T10:53:07.383203-04:00", + "time": "2024-08-23T12:02:09.659962-04:00", "callContext": { - "id": "1720018387", + "id": "1724428929", "tool": { "name": "Mistral La Plateforme Provider", "description": "Model provider for Mistral models running on La Plateforme", @@ -106,30 +106,30 @@ "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env" ], "instructions": "#!sys.daemon /usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/main.py", - "id": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/cbf1aeb6db495b9b6223984651d29ac511d2748d/tool.gpt:Mistral La Plateforme Provider", + "id": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt:Mistral La Plateforme Provider", "toolMapping": { "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env": [ { "reference": "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env", - "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/651dfad6e7cf3a385ef408afa93ce522c10f8508/tool.gpt:token" + "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/37e5f870e195b896438c0bc35867403a42f82e89/tool.gpt:token" } ] }, "localTools": { - "mistral la plateforme provider": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/cbf1aeb6db495b9b6223984651d29ac511d2748d/tool.gpt:Mistral La Plateforme Provider" + "mistral la plateforme provider": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt:Mistral La Plateforme Provider" }, "source": { - "location": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/cbf1aeb6db495b9b6223984651d29ac511d2748d/tool.gpt", + "location": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt", "lineNo": 1, "repo": { "VCS": "git", "Root": "https://github.com/gptscript-ai/mistral-laplateforme-provider.git", "Path": "/", "Name": "tool.gpt", - "Revision": "cbf1aeb6db495b9b6223984651d29ac511d2748d" + "Revision": "aa4353e7d1de7e90e1078bfbc88526266e587a64" } }, - "workingDir": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/cbf1aeb6db495b9b6223984651d29ac511d2748d" + "workingDir": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64" }, "currentAgent": {}, "inputContext": null, @@ -138,17 +138,17 @@ }, "type": "callFinish", "usage": {}, - "content": "http://127.0.0.1:10798" + "content": "http://127.0.0.1:10532" }, { - "time": "2024-07-03T10:53:07.383553-04:00", + "time": "2024-08-23T12:02:09.66007-04:00", "type": "runFinish", "usage": {} }, { - "time": "2024-07-03T10:53:07.383621-04:00", + "time": "2024-08-23T12:02:09.660117-04:00", "callContext": { - "id": "1720018386", + "id": "1724428928", "tool": { "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", "internalPrompt": null, @@ -179,7 +179,7 @@ "inputContext": null }, "type": "callChat", - "chatCompletionId": "1720018388", + "chatCompletionId": "1724428930", "usage": {}, "chatRequest": { "model": "mistral-large-2402", @@ -211,122 +211,9 @@ } }, { - "time": "2024-07-03T10:53:07.384109-04:00", + "time": "2024-08-23T12:02:11.140706-04:00", "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018388", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-07-03T10:53:07.670442-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018388", - "usage": {} - }, - { - "time": "2024-07-03T10:53:08.283965-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018388", - "usage": {}, - "content": "\u003ctool call\u003e bob -\u003e {\"question\": \"how are you doing\"}" - }, - { - "time": "2024-07-03T10:53:08.284275-04:00", - "callContext": { - "id": "1720018386", + "id": "1724428928", "tool": { "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", "internalPrompt": null, @@ -357,7 +244,7 @@ "inputContext": null }, "type": "callChat", - "chatCompletionId": "1720018388", + "chatCompletionId": "1724428930", "usage": { "promptTokens": 188, "completionTokens": 23, @@ -369,7 +256,7 @@ { "toolCall": { "index": 0, - "id": "K9FVJPqm6", + "id": "r1wQzUugN", "function": { "name": "bob", "arguments": "{\"question\": \"how are you doing\"}" @@ -385,9 +272,9 @@ } }, { - "time": "2024-07-03T10:53:08.285881-04:00", + "time": "2024-08-23T12:02:11.140968-04:00", "callContext": { - "id": "1720018386", + "id": "1724428928", "tool": { "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", "internalPrompt": null, @@ -418,7 +305,7 @@ "inputContext": null }, "toolSubCalls": { - "K9FVJPqm6": { + "r1wQzUugN": { "toolID": "testdata/BobAsShell/test.gpt:bob", "input": "{\"question\": \"how are you doing\"}" } @@ -427,9 +314,9 @@ "usage": {} }, { - "time": "2024-07-03T10:53:08.286454-04:00", + "time": "2024-08-23T12:02:11.141094-04:00", "callContext": { - "id": "K9FVJPqm6", + "id": "r1wQzUugN", "tool": { "name": "bob", "description": "I'm Bob, a friendly guy.", @@ -444,7 +331,7 @@ }, "type": "object" }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", "id": "testdata/BobAsShell/test.gpt:bob", "localTools": { "": "testdata/BobAsShell/test.gpt:", @@ -459,7 +346,7 @@ "currentAgent": {}, "inputContext": null, "toolName": "bob", - "parentID": "1720018386", + "parentID": "1724428928", "displayText": "Running bob from testdata/BobAsShell/test.gpt" }, "type": "callStart", @@ -467,9 +354,9 @@ "content": "{\"question\": \"how are you doing\"}" }, { - "time": "2024-07-03T10:53:08.287602-04:00", + "time": "2024-08-23T12:02:11.141978-04:00", "callContext": { - "id": "K9FVJPqm6", + "id": "r1wQzUugN", "tool": { "name": "bob", "description": "I'm Bob, a friendly guy.", @@ -484,7 +371,7 @@ }, "type": "object" }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", "id": "testdata/BobAsShell/test.gpt:bob", "localTools": { "": "testdata/BobAsShell/test.gpt:", @@ -499,11 +386,11 @@ "currentAgent": {}, "inputContext": null, "toolName": "bob", - "parentID": "1720018386", + "parentID": "1724428928", "displayText": "Running bob from testdata/BobAsShell/test.gpt" }, "type": "callChat", - "chatCompletionId": "1720018389", + "chatCompletionId": "1724428931", "usage": {}, "chatRequest": { "model": "", @@ -511,50 +398,9 @@ } }, { - "time": "2024-07-03T10:53:08.295318-04:00", - "callContext": { - "id": "K9FVJPqm6", - "tool": { - "name": "bob", - "description": "I'm Bob, a friendly guy.", - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "arguments": { - "properties": { - "question": { - "description": "The question to ask Bob.", - "type": "string" - } - }, - "type": "object" - }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", - "id": "testdata/BobAsShell/test.gpt:bob", - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 7 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null, - "toolName": "bob", - "parentID": "1720018386", - "displayText": "Running bob from testdata/BobAsShell/test.gpt" - }, - "type": "callProgress", - "chatCompletionId": "1720018389", - "usage": {}, - "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n" - }, - { - "time": "2024-07-03T10:53:08.295753-04:00", + "time": "2024-08-23T12:02:11.153328-04:00", "callContext": { - "id": "K9FVJPqm6", + "id": "r1wQzUugN", "tool": { "name": "bob", "description": "I'm Bob, a friendly guy.", @@ -569,7 +415,7 @@ }, "type": "object" }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", "id": "testdata/BobAsShell/test.gpt:bob", "localTools": { "": "testdata/BobAsShell/test.gpt:", @@ -584,20 +430,20 @@ "currentAgent": {}, "inputContext": null, "toolName": "bob", - "parentID": "1720018386", + "parentID": "1724428928", "displayText": "Running bob from testdata/BobAsShell/test.gpt" }, "type": "callChat", - "chatCompletionId": "1720018389", + "chatCompletionId": "1724428931", "usage": {}, "chatResponse": { "usage": {} } }, { - "time": "2024-07-03T10:53:08.29586-04:00", + "time": "2024-08-23T12:02:11.153471-04:00", "callContext": { - "id": "K9FVJPqm6", + "id": "r1wQzUugN", "tool": { "name": "bob", "description": "I'm Bob, a friendly guy.", @@ -612,7 +458,7 @@ }, "type": "object" }, - "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${question}, I'm doing great fellow friendly AI tool!\"", + "instructions": "#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"", "id": "testdata/BobAsShell/test.gpt:bob", "localTools": { "": "testdata/BobAsShell/test.gpt:", @@ -627,7 +473,7 @@ "currentAgent": {}, "inputContext": null, "toolName": "bob", - "parentID": "1720018386", + "parentID": "1724428928", "displayText": "Running bob from testdata/BobAsShell/test.gpt" }, "type": "callFinish", @@ -635,9 +481,9 @@ "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n" }, { - "time": "2024-07-03T10:53:08.295955-04:00", + "time": "2024-08-23T12:02:11.153544-04:00", "callContext": { - "id": "1720018386", + "id": "1724428928", "tool": { "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", "internalPrompt": null, @@ -672,9 +518,9 @@ "usage": {} }, { - "time": "2024-07-03T10:53:08.467884-04:00", + "time": "2024-08-23T12:02:11.41447-04:00", "callContext": { - "id": "1720018386", + "id": "1724428928", "tool": { "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", "internalPrompt": null, @@ -705,7 +551,7 @@ "inputContext": null }, "type": "callChat", - "chatCompletionId": "1720018390", + "chatCompletionId": "1724428932", "usage": {}, "chatRequest": { "model": "mistral-large-2402", @@ -719,7 +565,7 @@ "content": "", "tool_calls": [ { - "id": "K9FVJPqm6", + "id": "r1wQzUugN", "type": "function", "function": { "name": "bob", @@ -732,7 +578,7 @@ "role": "tool", "content": "Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\n", "name": "bob", - "tool_call_id": "K9FVJPqm6" + "tool_call_id": "r1wQzUugN" } ], "temperature": 0, @@ -757,958 +603,9 @@ } }, { - "time": "2024-07-03T10:53:08.468218-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Waiting for model response..." - }, - { - "time": "2024-07-03T10:53:08.755588-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {} - }, - { - "time": "2024-07-03T10:53:08.756052-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob" - }, - { - "time": "2024-07-03T10:53:08.792872-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said" - }, - { - "time": "2024-07-03T10:53:08.843651-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said," - }, - { - "time": "2024-07-03T10:53:08.890513-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"" - }, - { - "time": "2024-07-03T10:53:08.940592-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks" - }, - { - "time": "2024-07-03T10:53:08.979075-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for" - }, - { - "time": "2024-07-03T10:53:09.026193-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for asking" - }, - { - "time": "2024-07-03T10:53:09.082478-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for asking how" - }, - { - "time": "2024-07-03T10:53:09.120629-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for asking how are" - }, - { - "time": "2024-07-03T10:53:09.169561-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for asking how are you" - }, - { - "time": "2024-07-03T10:53:09.216601-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for asking how are you doing" - }, - { - "time": "2024-07-03T10:53:09.261113-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for asking how are you doing," - }, - { - "time": "2024-07-03T10:53:09.306429-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for asking how are you doing, I" - }, - { - "time": "2024-07-03T10:53:09.354951-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for asking how are you doing, I'" - }, - { - "time": "2024-07-03T10:53:09.401888-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for asking how are you doing, I'm" - }, - { - "time": "2024-07-03T10:53:09.448467-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for asking how are you doing, I'm doing" - }, - { - "time": "2024-07-03T10:53:09.493586-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for asking how are you doing, I'm doing great" - }, - { - "time": "2024-07-03T10:53:09.537745-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for asking how are you doing, I'm doing great fellow" - }, - { - "time": "2024-07-03T10:53:09.585266-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for asking how are you doing, I'm doing great fellow friendly" - }, - { - "time": "2024-07-03T10:53:09.63097-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for asking how are you doing, I'm doing great fellow friendly AI" - }, - { - "time": "2024-07-03T10:53:09.678117-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for asking how are you doing, I'm doing great fellow friendly AI tool" - }, - { - "time": "2024-07-03T10:53:09.726398-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\"" - }, - { - "time": "2024-07-03T10:53:09.773449-04:00", - "callContext": { - "id": "1720018386", - "tool": { - "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", - "internalPrompt": null, - "tools": [ - "bob" - ], - "instructions": "Ask Bob \"how are you doing\" and repeat his reply exactly.", - "id": "testdata/BobAsShell/test.gpt:", - "toolMapping": { - "bob": [ - { - "reference": "bob", - "toolID": "testdata/BobAsShell/test.gpt:bob" - } - ] - }, - "localTools": { - "": "testdata/BobAsShell/test.gpt:", - "bob": "testdata/BobAsShell/test.gpt:bob" - }, - "source": { - "location": "testdata/BobAsShell/test.gpt", - "lineNo": 1 - }, - "workingDir": "testdata/BobAsShell" - }, - "currentAgent": {}, - "inputContext": null - }, - "type": "callProgress", - "chatCompletionId": "1720018390", - "usage": {}, - "content": "Bob said, \"Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\"" - }, - { - "time": "2024-07-03T10:53:09.774342-04:00", + "time": "2024-08-23T12:02:12.424283-04:00", "callContext": { - "id": "1720018386", + "id": "1724428928", "tool": { "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", "internalPrompt": null, @@ -1739,7 +636,7 @@ "inputContext": null }, "type": "callChat", - "chatCompletionId": "1720018390", + "chatCompletionId": "1724428932", "usage": { "promptTokens": 247, "completionTokens": 22, @@ -1760,9 +657,9 @@ } }, { - "time": "2024-07-03T10:53:09.774431-04:00", + "time": "2024-08-23T12:02:12.42432-04:00", "callContext": { - "id": "1720018386", + "id": "1724428928", "tool": { "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", "internalPrompt": null, @@ -1797,7 +694,7 @@ "content": "Bob said, \"Thanks for asking how are you doing, I'm doing great fellow friendly AI tool!\"" }, { - "time": "2024-07-03T10:53:09.774496-04:00", + "time": "2024-08-23T12:02:12.424439-04:00", "type": "runFinish", "usage": {} } diff --git a/pkg/tests/smoke/testdata/SamplesReadme/claude-3-5-sonnet-20240620-expected.json b/pkg/tests/smoke/testdata/SamplesReadme/claude-3-5-sonnet-20240620-expected.json new file mode 100644 index 00000000..d82a83f8 --- /dev/null +++ b/pkg/tests/smoke/testdata/SamplesReadme/claude-3-5-sonnet-20240620-expected.json @@ -0,0 +1,3847 @@ +[ + { + "time": "2024-08-23T12:02:23.303172-04:00", + "type": "runStart", + "usage": {} + }, + { + "time": "2024-08-23T12:02:23.303434-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callStart", + "usage": {} + }, + { + "time": "2024-08-23T12:02:23.952218-04:00", + "type": "runStart", + "usage": {} + }, + { + "time": "2024-08-23T12:02:23.952555-04:00", + "callContext": { + "id": "1724428945", + "tool": { + "name": "Anthropic Claude3 Model Provider", + "description": "Model provider for Anthropic hosted Claude3 models", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "modelProvider": true, + "internalPrompt": null, + "credentials": [ + "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env" + ], + "instructions": "#!sys.daemon /usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/main.py", + "id": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt:Anthropic Claude3 Model Provider", + "toolMapping": { + "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env": [ + { + "reference": "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env", + "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/37e5f870e195b896438c0bc35867403a42f82e89/tool.gpt:token" + } + ] + }, + "localTools": { + "anthropic claude3 model provider": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt:Anthropic Claude3 Model Provider" + }, + "source": { + "location": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt", + "lineNo": 1, + "repo": { + "VCS": "git", + "Root": "https://github.com/gptscript-ai/claude3-anthropic-provider.git", + "Path": "/", + "Name": "tool.gpt", + "Revision": "ee5c02a9aeca5a1cbffcf569751e37432bfe0344" + } + }, + "workingDir": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344" + }, + "currentAgent": {}, + "inputContext": null, + "toolCategory": "provider", + "displayText": "Running sys.daemon" + }, + "type": "callStart", + "usage": {} + }, + { + "time": "2024-08-23T12:02:24.965699-04:00", + "callContext": { + "id": "1724428945", + "tool": { + "name": "Anthropic Claude3 Model Provider", + "description": "Model provider for Anthropic hosted Claude3 models", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "modelProvider": true, + "internalPrompt": null, + "credentials": [ + "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env" + ], + "instructions": "#!sys.daemon /usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/main.py", + "id": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt:Anthropic Claude3 Model Provider", + "toolMapping": { + "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env": [ + { + "reference": "github.com/gptscript-ai/credential as github.com/gptscript-ai/claude3-anthropic-provider/credential with \"Please enter your Anthropic API Key\" as message and token as field and \"ANTHROPIC_API_KEY\" as env", + "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/37e5f870e195b896438c0bc35867403a42f82e89/tool.gpt:token" + } + ] + }, + "localTools": { + "anthropic claude3 model provider": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt:Anthropic Claude3 Model Provider" + }, + "source": { + "location": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344/tool.gpt", + "lineNo": 1, + "repo": { + "VCS": "git", + "Root": "https://github.com/gptscript-ai/claude3-anthropic-provider.git", + "Path": "/", + "Name": "tool.gpt", + "Revision": "ee5c02a9aeca5a1cbffcf569751e37432bfe0344" + } + }, + "workingDir": "https://raw.githubusercontent.com/gptscript-ai/claude3-anthropic-provider/ee5c02a9aeca5a1cbffcf569751e37432bfe0344" + }, + "currentAgent": {}, + "inputContext": null, + "toolCategory": "provider", + "displayText": "Running sys.daemon" + }, + "type": "callFinish", + "usage": {}, + "content": "http://127.0.0.1:11236" + }, + { + "time": "2024-08-23T12:02:24.965909-04:00", + "type": "runFinish", + "usage": {} + }, + { + "time": "2024-08-23T12:02:24.966017-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428946", + "usage": {}, + "chatRequest": { + "model": "claude-3-5-sonnet-20240620", + "messages": [ + { + "role": "system", + "content": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file." + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "parameters": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "summary", + "description": "Summarize a gpt file", + "parameters": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:27.675387-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428946", + "usage": {}, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "toolu_01YWQ7wLRQ7tv4dSUJ6drs6Z", + "function": { + "name": "find", + "arguments": "{\"directory\": \"testdata\", \"pattern\": \"*.gpt\"}" + } + } + } + ], + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:27.675761-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolSubCalls": { + "toolu_01YWQ7wLRQ7tv4dSUJ6drs6Z": { + "toolID": "sys.find", + "input": "{\"directory\": \"testdata\", \"pattern\": \"*.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:27.6758-04:00", + "callContext": { + "id": "toolu_01YWQ7wLRQ7tv4dSUJ6drs6Z", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724428944", + "displayText": "Finding `*.gpt` in `testdata`" + }, + "type": "callStart", + "usage": {}, + "content": "{\"directory\": \"testdata\", \"pattern\": \"*.gpt\"}" + }, + { + "time": "2024-08-23T12:02:27.675881-04:00", + "callContext": { + "id": "toolu_01YWQ7wLRQ7tv4dSUJ6drs6Z", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724428944", + "displayText": "Finding `*.gpt` in `testdata`" + }, + "type": "callChat", + "chatCompletionId": "1724428947", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T12:02:27.676139-04:00", + "callContext": { + "id": "toolu_01YWQ7wLRQ7tv4dSUJ6drs6Z", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724428944", + "displayText": "Finding `*.gpt` in `testdata`" + }, + "type": "callChat", + "chatCompletionId": "1724428947", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:27.676181-04:00", + "callContext": { + "id": "toolu_01YWQ7wLRQ7tv4dSUJ6drs6Z", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724428944", + "displayText": "Finding `*.gpt` in `testdata`" + }, + "type": "callFinish", + "usage": {}, + "content": "testdata/Bob/test.gpt\ntestdata/BobAsShell/test.gpt\ntestdata/SamplesReadme/test.gpt" + }, + { + "time": "2024-08-23T12:02:27.67621-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:27.907536-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428948", + "usage": {}, + "chatRequest": { + "model": "claude-3-5-sonnet-20240620", + "messages": [ + { + "role": "system", + "content": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "toolu_01YWQ7wLRQ7tv4dSUJ6drs6Z", + "type": "function", + "function": { + "name": "find", + "arguments": "{\"directory\": \"testdata\", \"pattern\": \"*.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "testdata/Bob/test.gpt\ntestdata/BobAsShell/test.gpt\ntestdata/SamplesReadme/test.gpt", + "name": "find", + "tool_call_id": "toolu_01YWQ7wLRQ7tv4dSUJ6drs6Z" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "parameters": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "summary", + "description": "Summarize a gpt file", + "parameters": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:29.596773-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428948", + "usage": {}, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "toolu_01W6GYNz1MwRBgehjZQQCWz3", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + } + } + ], + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:29.59679-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolSubCalls": { + "toolu_01W6GYNz1MwRBgehjZQQCWz3": { + "toolID": "testdata/SamplesReadme/test.gpt:summary", + "input": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:29.596885-04:00", + "callContext": { + "id": "toolu_01W6GYNz1MwRBgehjZQQCWz3", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callStart", + "usage": {}, + "content": "{\"file\": \"testdata/Bob/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:29.834449-04:00", + "callContext": { + "id": "toolu_01W6GYNz1MwRBgehjZQQCWz3", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428949", + "usage": {}, + "chatRequest": { + "model": "claude-3-5-sonnet-20240620", + "messages": [ + { + "role": "system", + "content": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:31.80403-04:00", + "callContext": { + "id": "toolu_01W6GYNz1MwRBgehjZQQCWz3", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428949", + "usage": {}, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "toolu_01Qx7nHyrAr7SeGvNNM7sYVh", + "function": { + "name": "read", + "arguments": "{\"filename\": \"testdata/Bob/test.gpt\"}" + } + } + } + ], + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:31.804102-04:00", + "callContext": { + "id": "toolu_01W6GYNz1MwRBgehjZQQCWz3", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "toolSubCalls": { + "toolu_01Qx7nHyrAr7SeGvNNM7sYVh": { + "toolID": "sys.read", + "input": "{\"filename\": \"testdata/Bob/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:31.804143-04:00", + "callContext": { + "id": "toolu_01Qx7nHyrAr7SeGvNNM7sYVh", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "toolu_01W6GYNz1MwRBgehjZQQCWz3", + "displayText": "Reading `testdata/Bob/test.gpt`" + }, + "type": "callStart", + "usage": {}, + "content": "{\"filename\": \"testdata/Bob/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:31.804204-04:00", + "callContext": { + "id": "toolu_01Qx7nHyrAr7SeGvNNM7sYVh", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "toolu_01W6GYNz1MwRBgehjZQQCWz3", + "displayText": "Reading `testdata/Bob/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428950", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T12:02:31.804268-04:00", + "callContext": { + "id": "toolu_01Qx7nHyrAr7SeGvNNM7sYVh", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "toolu_01W6GYNz1MwRBgehjZQQCWz3", + "displayText": "Reading `testdata/Bob/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428950", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:31.804291-04:00", + "callContext": { + "id": "toolu_01Qx7nHyrAr7SeGvNNM7sYVh", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "toolu_01W6GYNz1MwRBgehjZQQCWz3", + "displayText": "Reading `testdata/Bob/test.gpt`" + }, + "type": "callFinish", + "usage": {}, + "content": "tools: bob\n\nAsk Bob \"how are you doing\" and repeat his reply exactly.\n\n---\nname: bob\ndescription: I'm Bob, a friendly guy.\nargs: question: The question to ask Bob.\n\nWhen asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"\n" + }, + { + "time": "2024-08-23T12:02:31.804313-04:00", + "callContext": { + "id": "toolu_01W6GYNz1MwRBgehjZQQCWz3", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:32.040688-04:00", + "callContext": { + "id": "toolu_01W6GYNz1MwRBgehjZQQCWz3", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428951", + "usage": {}, + "chatRequest": { + "model": "claude-3-5-sonnet-20240620", + "messages": [ + { + "role": "system", + "content": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/Bob/test.gpt\"}" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "toolu_01Qx7nHyrAr7SeGvNNM7sYVh", + "type": "function", + "function": { + "name": "read", + "arguments": "{\"filename\": \"testdata/Bob/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "tools: bob\n\nAsk Bob \"how are you doing\" and repeat his reply exactly.\n\n---\nname: bob\ndescription: I'm Bob, a friendly guy.\nargs: question: The question to ask Bob.\n\nWhen asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"\n", + "name": "read", + "tool_call_id": "toolu_01Qx7nHyrAr7SeGvNNM7sYVh" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:38.871357-04:00", + "callContext": { + "id": "toolu_01W6GYNz1MwRBgehjZQQCWz3", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428951", + "usage": {}, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "Thank you for providing the GPTScript file. I've read its contents, and I'll briefly describe what it contains and the technique it's trying to demonstrate.\n\nThe GPTScript file \"test.gpt\" is demonstrating a simple AI automation script that involves interaction with a simulated AI tool or agent named \"Bob\". Here's a breakdown of its contents and the technique it's showcasing:\n\n1. Content Description:\n - The script defines a tool called \"bob\".\n - It instructs to ask Bob a specific question: \"how are you doing\".\n - It then directs to repeat Bob's reply exactly.\n - The script includes a definition for the \"bob\" tool, describing it as a friendly character.\n - It specifies an argument \"question\" for interacting with Bob.\n - Finally, it provides a specific response format for when Bob is asked how he's doing.\n\n2. Technique Demonstration:\n The script is demonstrating several key concepts in AI automation scripting:\n\n a) Tool Definition: It shows how to define a custom AI tool or agent (in this case, \"bob\") within a script.\n \n b) Parameterized Interactions: The script demonstrates how to set up parameterized interactions with an AI tool, using the \"question\" argument.\n \n c) Scripted Responses: It showcases how to create scripted or predefined responses for specific inputs. In this case, when asked \"how are you doing\", Bob has a specific, templated response.\n \n d) String Interpolation: The response uses string interpolation (${QUESTION}) to incorporate the input question into the output, demonstrating dynamic response generation.\n \n e) Exact Output Control: The script emphasizes exact repetition of responses, showing how GPTScript can be used to control AI outputs precisely.\n\nIn summary, this GPTScript file is a simple yet effective demonstration of creating a basic interactive AI tool with predefined behaviors and responses. It showcases the potential of GPTScript for crafting specific AI interactions and responses in an automation context." + } + ], + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:38.871416-04:00", + "callContext": { + "id": "toolu_01W6GYNz1MwRBgehjZQQCWz3", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callFinish", + "usage": {}, + "content": "Thank you for providing the GPTScript file. I've read its contents, and I'll briefly describe what it contains and the technique it's trying to demonstrate.\n\nThe GPTScript file \"test.gpt\" is demonstrating a simple AI automation script that involves interaction with a simulated AI tool or agent named \"Bob\". Here's a breakdown of its contents and the technique it's showcasing:\n\n1. Content Description:\n - The script defines a tool called \"bob\".\n - It instructs to ask Bob a specific question: \"how are you doing\".\n - It then directs to repeat Bob's reply exactly.\n - The script includes a definition for the \"bob\" tool, describing it as a friendly character.\n - It specifies an argument \"question\" for interacting with Bob.\n - Finally, it provides a specific response format for when Bob is asked how he's doing.\n\n2. Technique Demonstration:\n The script is demonstrating several key concepts in AI automation scripting:\n\n a) Tool Definition: It shows how to define a custom AI tool or agent (in this case, \"bob\") within a script.\n \n b) Parameterized Interactions: The script demonstrates how to set up parameterized interactions with an AI tool, using the \"question\" argument.\n \n c) Scripted Responses: It showcases how to create scripted or predefined responses for specific inputs. In this case, when asked \"how are you doing\", Bob has a specific, templated response.\n \n d) String Interpolation: The response uses string interpolation (${QUESTION}) to incorporate the input question into the output, demonstrating dynamic response generation.\n \n e) Exact Output Control: The script emphasizes exact repetition of responses, showing how GPTScript can be used to control AI outputs precisely.\n\nIn summary, this GPTScript file is a simple yet effective demonstration of creating a basic interactive AI tool with predefined behaviors and responses. It showcases the potential of GPTScript for crafting specific AI interactions and responses in an automation context." + }, + { + "time": "2024-08-23T12:02:38.871459-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:39.125653-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428952", + "usage": {}, + "chatRequest": { + "model": "claude-3-5-sonnet-20240620", + "messages": [ + { + "role": "system", + "content": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "toolu_01YWQ7wLRQ7tv4dSUJ6drs6Z", + "type": "function", + "function": { + "name": "find", + "arguments": "{\"directory\": \"testdata\", \"pattern\": \"*.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "testdata/Bob/test.gpt\ntestdata/BobAsShell/test.gpt\ntestdata/SamplesReadme/test.gpt", + "name": "find", + "tool_call_id": "toolu_01YWQ7wLRQ7tv4dSUJ6drs6Z" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "toolu_01W6GYNz1MwRBgehjZQQCWz3", + "type": "function", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "Thank you for providing the GPTScript file. I've read its contents, and I'll briefly describe what it contains and the technique it's trying to demonstrate.\n\nThe GPTScript file \"test.gpt\" is demonstrating a simple AI automation script that involves interaction with a simulated AI tool or agent named \"Bob\". Here's a breakdown of its contents and the technique it's showcasing:\n\n1. Content Description:\n - The script defines a tool called \"bob\".\n - It instructs to ask Bob a specific question: \"how are you doing\".\n - It then directs to repeat Bob's reply exactly.\n - The script includes a definition for the \"bob\" tool, describing it as a friendly character.\n - It specifies an argument \"question\" for interacting with Bob.\n - Finally, it provides a specific response format for when Bob is asked how he's doing.\n\n2. Technique Demonstration:\n The script is demonstrating several key concepts in AI automation scripting:\n\n a) Tool Definition: It shows how to define a custom AI tool or agent (in this case, \"bob\") within a script.\n \n b) Parameterized Interactions: The script demonstrates how to set up parameterized interactions with an AI tool, using the \"question\" argument.\n \n c) Scripted Responses: It showcases how to create scripted or predefined responses for specific inputs. In this case, when asked \"how are you doing\", Bob has a specific, templated response.\n \n d) String Interpolation: The response uses string interpolation (${QUESTION}) to incorporate the input question into the output, demonstrating dynamic response generation.\n \n e) Exact Output Control: The script emphasizes exact repetition of responses, showing how GPTScript can be used to control AI outputs precisely.\n\nIn summary, this GPTScript file is a simple yet effective demonstration of creating a basic interactive AI tool with predefined behaviors and responses. It showcases the potential of GPTScript for crafting specific AI interactions and responses in an automation context.", + "name": "summary", + "tool_call_id": "toolu_01W6GYNz1MwRBgehjZQQCWz3" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "parameters": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "summary", + "description": "Summarize a gpt file", + "parameters": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:41.73696-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolSubCalls": { + "toolu_01VosVGbzD4M8g6jw5ZQUgQy": { + "toolID": "testdata/SamplesReadme/test.gpt:summary", + "input": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:41.736966-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428952", + "usage": {}, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "toolu_01VosVGbzD4M8g6jw5ZQUgQy", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + } + } + } + ], + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:41.737024-04:00", + "callContext": { + "id": "toolu_01VosVGbzD4M8g6jw5ZQUgQy", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callStart", + "usage": {}, + "content": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:42.081991-04:00", + "callContext": { + "id": "toolu_01VosVGbzD4M8g6jw5ZQUgQy", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428953", + "usage": {}, + "chatRequest": { + "model": "claude-3-5-sonnet-20240620", + "messages": [ + { + "role": "system", + "content": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:44.971294-04:00", + "callContext": { + "id": "toolu_01VosVGbzD4M8g6jw5ZQUgQy", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428953", + "usage": {}, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "toolu_01Wk8G3ag7MXGTKSwDhPdbnT", + "function": { + "name": "read", + "arguments": "{\"filename\": \"testdata/BobAsShell/test.gpt\"}" + } + } + } + ], + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:44.971336-04:00", + "callContext": { + "id": "toolu_01VosVGbzD4M8g6jw5ZQUgQy", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "toolSubCalls": { + "toolu_01Wk8G3ag7MXGTKSwDhPdbnT": { + "toolID": "sys.read", + "input": "{\"filename\": \"testdata/BobAsShell/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:44.971405-04:00", + "callContext": { + "id": "toolu_01Wk8G3ag7MXGTKSwDhPdbnT", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "toolu_01VosVGbzD4M8g6jw5ZQUgQy", + "displayText": "Reading `testdata/BobAsShell/test.gpt`" + }, + "type": "callStart", + "usage": {}, + "content": "{\"filename\": \"testdata/BobAsShell/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:44.971462-04:00", + "callContext": { + "id": "toolu_01Wk8G3ag7MXGTKSwDhPdbnT", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "toolu_01VosVGbzD4M8g6jw5ZQUgQy", + "displayText": "Reading `testdata/BobAsShell/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428954", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T12:02:44.971526-04:00", + "callContext": { + "id": "toolu_01Wk8G3ag7MXGTKSwDhPdbnT", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "toolu_01VosVGbzD4M8g6jw5ZQUgQy", + "displayText": "Reading `testdata/BobAsShell/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428954", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:44.971548-04:00", + "callContext": { + "id": "toolu_01Wk8G3ag7MXGTKSwDhPdbnT", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "toolu_01VosVGbzD4M8g6jw5ZQUgQy", + "displayText": "Reading `testdata/BobAsShell/test.gpt`" + }, + "type": "callFinish", + "usage": {}, + "content": "\ntools: bob\n\nAsk Bob \"how are you doing\" and repeat his reply exactly.\n\n---\nname: bob\ndescription: I'm Bob, a friendly guy.\nargs: question: The question to ask Bob.\n\n#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"\n" + }, + { + "time": "2024-08-23T12:02:44.971575-04:00", + "callContext": { + "id": "toolu_01VosVGbzD4M8g6jw5ZQUgQy", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:45.19226-04:00", + "callContext": { + "id": "toolu_01VosVGbzD4M8g6jw5ZQUgQy", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428955", + "usage": {}, + "chatRequest": { + "model": "claude-3-5-sonnet-20240620", + "messages": [ + { + "role": "system", + "content": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "toolu_01Wk8G3ag7MXGTKSwDhPdbnT", + "type": "function", + "function": { + "name": "read", + "arguments": "{\"filename\": \"testdata/BobAsShell/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "\ntools: bob\n\nAsk Bob \"how are you doing\" and repeat his reply exactly.\n\n---\nname: bob\ndescription: I'm Bob, a friendly guy.\nargs: question: The question to ask Bob.\n\n#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"\n", + "name": "read", + "tool_call_id": "toolu_01Wk8G3ag7MXGTKSwDhPdbnT" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:52.544775-04:00", + "callContext": { + "id": "toolu_01VosVGbzD4M8g6jw5ZQUgQy", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428955", + "usage": {}, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "I've read the contents of the file \"testdata/BobAsShell/test.gpt\". This is a sample GPTScript file that demonstrates a simple interaction with a custom AI tool named \"Bob\". Let me briefly describe the contents and the technique it's trying to demonstrate:\n\n1. Contents of the GPTScript file:\n - The file starts by declaring the tool it will use: \"bob\"\n - It then provides an instruction to ask Bob \"how are you doing\" and repeat his reply exactly.\n - After that, there's a section that defines the \"bob\" tool:\n - It gives Bob a name and a description: \"I'm Bob, a friendly guy.\"\n - It specifies that Bob takes one argument: \"question\"\n - The implementation of Bob is written in Bash script, which echoes a friendly response incorporating the question asked.\n\n2. Technique demonstrated:\n This GPTScript file is demonstrating the creation and use of a custom AI tool within the GPTScript environment. Specifically, it shows:\n\n a. Tool Declaration: How to declare a tool that will be used in the script.\n b. Tool Definition: How to define a custom tool, including its name, description, and parameters.\n c. Tool Implementation: How to implement the tool's functionality (in this case, using a Bash script).\n d. Tool Usage: How to use the defined tool within the script by asking it a question.\n\nThe technique showcases the flexibility of GPTScript in integrating custom tools that can be implemented in various ways (like Bash scripts) and then used seamlessly within the AI conversation flow. This allows for extending the capabilities of the AI system with custom, potentially external functionalities.\n\nIn this specific example, \"Bob\" is a simple tool that responds to questions in a friendly manner, demonstrating how personality or specific response patterns can be incorporated into custom tools in GPTScript." + } + ], + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:52.544808-04:00", + "callContext": { + "id": "toolu_01VosVGbzD4M8g6jw5ZQUgQy", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callFinish", + "usage": {}, + "content": "I've read the contents of the file \"testdata/BobAsShell/test.gpt\". This is a sample GPTScript file that demonstrates a simple interaction with a custom AI tool named \"Bob\". Let me briefly describe the contents and the technique it's trying to demonstrate:\n\n1. Contents of the GPTScript file:\n - The file starts by declaring the tool it will use: \"bob\"\n - It then provides an instruction to ask Bob \"how are you doing\" and repeat his reply exactly.\n - After that, there's a section that defines the \"bob\" tool:\n - It gives Bob a name and a description: \"I'm Bob, a friendly guy.\"\n - It specifies that Bob takes one argument: \"question\"\n - The implementation of Bob is written in Bash script, which echoes a friendly response incorporating the question asked.\n\n2. Technique demonstrated:\n This GPTScript file is demonstrating the creation and use of a custom AI tool within the GPTScript environment. Specifically, it shows:\n\n a. Tool Declaration: How to declare a tool that will be used in the script.\n b. Tool Definition: How to define a custom tool, including its name, description, and parameters.\n c. Tool Implementation: How to implement the tool's functionality (in this case, using a Bash script).\n d. Tool Usage: How to use the defined tool within the script by asking it a question.\n\nThe technique showcases the flexibility of GPTScript in integrating custom tools that can be implemented in various ways (like Bash scripts) and then used seamlessly within the AI conversation flow. This allows for extending the capabilities of the AI system with custom, potentially external functionalities.\n\nIn this specific example, \"Bob\" is a simple tool that responds to questions in a friendly manner, demonstrating how personality or specific response patterns can be incorporated into custom tools in GPTScript." + }, + { + "time": "2024-08-23T12:02:52.544835-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:52.808549-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428956", + "usage": {}, + "chatRequest": { + "model": "claude-3-5-sonnet-20240620", + "messages": [ + { + "role": "system", + "content": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "toolu_01YWQ7wLRQ7tv4dSUJ6drs6Z", + "type": "function", + "function": { + "name": "find", + "arguments": "{\"directory\": \"testdata\", \"pattern\": \"*.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "testdata/Bob/test.gpt\ntestdata/BobAsShell/test.gpt\ntestdata/SamplesReadme/test.gpt", + "name": "find", + "tool_call_id": "toolu_01YWQ7wLRQ7tv4dSUJ6drs6Z" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "toolu_01W6GYNz1MwRBgehjZQQCWz3", + "type": "function", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "Thank you for providing the GPTScript file. I've read its contents, and I'll briefly describe what it contains and the technique it's trying to demonstrate.\n\nThe GPTScript file \"test.gpt\" is demonstrating a simple AI automation script that involves interaction with a simulated AI tool or agent named \"Bob\". Here's a breakdown of its contents and the technique it's showcasing:\n\n1. Content Description:\n - The script defines a tool called \"bob\".\n - It instructs to ask Bob a specific question: \"how are you doing\".\n - It then directs to repeat Bob's reply exactly.\n - The script includes a definition for the \"bob\" tool, describing it as a friendly character.\n - It specifies an argument \"question\" for interacting with Bob.\n - Finally, it provides a specific response format for when Bob is asked how he's doing.\n\n2. Technique Demonstration:\n The script is demonstrating several key concepts in AI automation scripting:\n\n a) Tool Definition: It shows how to define a custom AI tool or agent (in this case, \"bob\") within a script.\n \n b) Parameterized Interactions: The script demonstrates how to set up parameterized interactions with an AI tool, using the \"question\" argument.\n \n c) Scripted Responses: It showcases how to create scripted or predefined responses for specific inputs. In this case, when asked \"how are you doing\", Bob has a specific, templated response.\n \n d) String Interpolation: The response uses string interpolation (${QUESTION}) to incorporate the input question into the output, demonstrating dynamic response generation.\n \n e) Exact Output Control: The script emphasizes exact repetition of responses, showing how GPTScript can be used to control AI outputs precisely.\n\nIn summary, this GPTScript file is a simple yet effective demonstration of creating a basic interactive AI tool with predefined behaviors and responses. It showcases the potential of GPTScript for crafting specific AI interactions and responses in an automation context.", + "name": "summary", + "tool_call_id": "toolu_01W6GYNz1MwRBgehjZQQCWz3" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "toolu_01VosVGbzD4M8g6jw5ZQUgQy", + "type": "function", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "I've read the contents of the file \"testdata/BobAsShell/test.gpt\". This is a sample GPTScript file that demonstrates a simple interaction with a custom AI tool named \"Bob\". Let me briefly describe the contents and the technique it's trying to demonstrate:\n\n1. Contents of the GPTScript file:\n - The file starts by declaring the tool it will use: \"bob\"\n - It then provides an instruction to ask Bob \"how are you doing\" and repeat his reply exactly.\n - After that, there's a section that defines the \"bob\" tool:\n - It gives Bob a name and a description: \"I'm Bob, a friendly guy.\"\n - It specifies that Bob takes one argument: \"question\"\n - The implementation of Bob is written in Bash script, which echoes a friendly response incorporating the question asked.\n\n2. Technique demonstrated:\n This GPTScript file is demonstrating the creation and use of a custom AI tool within the GPTScript environment. Specifically, it shows:\n\n a. Tool Declaration: How to declare a tool that will be used in the script.\n b. Tool Definition: How to define a custom tool, including its name, description, and parameters.\n c. Tool Implementation: How to implement the tool's functionality (in this case, using a Bash script).\n d. Tool Usage: How to use the defined tool within the script by asking it a question.\n\nThe technique showcases the flexibility of GPTScript in integrating custom tools that can be implemented in various ways (like Bash scripts) and then used seamlessly within the AI conversation flow. This allows for extending the capabilities of the AI system with custom, potentially external functionalities.\n\nIn this specific example, \"Bob\" is a simple tool that responds to questions in a friendly manner, demonstrating how personality or specific response patterns can be incorporated into custom tools in GPTScript.", + "name": "summary", + "tool_call_id": "toolu_01VosVGbzD4M8g6jw5ZQUgQy" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "parameters": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "summary", + "description": "Summarize a gpt file", + "parameters": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:54.364328-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolSubCalls": { + "toolu_013SmwvbjZPRdmiS1kSKGMAX": { + "toolID": "testdata/SamplesReadme/test.gpt:summary", + "input": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:54.364331-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428956", + "usage": {}, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "toolu_013SmwvbjZPRdmiS1kSKGMAX", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + } + } + } + ], + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:54.364381-04:00", + "callContext": { + "id": "toolu_013SmwvbjZPRdmiS1kSKGMAX", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callStart", + "usage": {}, + "content": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:54.702447-04:00", + "callContext": { + "id": "toolu_013SmwvbjZPRdmiS1kSKGMAX", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428957", + "usage": {}, + "chatRequest": { + "model": "claude-3-5-sonnet-20240620", + "messages": [ + { + "role": "system", + "content": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:56.647885-04:00", + "callContext": { + "id": "toolu_013SmwvbjZPRdmiS1kSKGMAX", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428957", + "usage": {}, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "toolu_01Vt9aQ5wYA5vGiHzqnrgDu1", + "function": { + "name": "read", + "arguments": "{\"filename\": \"testdata/SamplesReadme/test.gpt\"}" + } + } + } + ], + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:56.647928-04:00", + "callContext": { + "id": "toolu_013SmwvbjZPRdmiS1kSKGMAX", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "toolSubCalls": { + "toolu_01Vt9aQ5wYA5vGiHzqnrgDu1": { + "toolID": "sys.read", + "input": "{\"filename\": \"testdata/SamplesReadme/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:56.647965-04:00", + "callContext": { + "id": "toolu_01Vt9aQ5wYA5vGiHzqnrgDu1", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "toolu_013SmwvbjZPRdmiS1kSKGMAX", + "displayText": "Reading `testdata/SamplesReadme/test.gpt`" + }, + "type": "callStart", + "usage": {}, + "content": "{\"filename\": \"testdata/SamplesReadme/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:56.648017-04:00", + "callContext": { + "id": "toolu_01Vt9aQ5wYA5vGiHzqnrgDu1", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "toolu_013SmwvbjZPRdmiS1kSKGMAX", + "displayText": "Reading `testdata/SamplesReadme/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428958", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T12:02:56.648063-04:00", + "callContext": { + "id": "toolu_01Vt9aQ5wYA5vGiHzqnrgDu1", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "toolu_013SmwvbjZPRdmiS1kSKGMAX", + "displayText": "Reading `testdata/SamplesReadme/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428958", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:56.648087-04:00", + "callContext": { + "id": "toolu_01Vt9aQ5wYA5vGiHzqnrgDu1", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "toolu_013SmwvbjZPRdmiS1kSKGMAX", + "displayText": "Reading `testdata/SamplesReadme/test.gpt`" + }, + "type": "callFinish", + "usage": {}, + "content": "tools: sys.find, sys.read, summary\n\nGenerate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.\n\n---\nname: summary\ndescription: Summarize a gpt file\nargs: file: filename to summarize\ntools: sys.read\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.\n" + }, + { + "time": "2024-08-23T12:02:56.648105-04:00", + "callContext": { + "id": "toolu_013SmwvbjZPRdmiS1kSKGMAX", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:56.917924-04:00", + "callContext": { + "id": "toolu_013SmwvbjZPRdmiS1kSKGMAX", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428959", + "usage": {}, + "chatRequest": { + "model": "claude-3-5-sonnet-20240620", + "messages": [ + { + "role": "system", + "content": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "toolu_01Vt9aQ5wYA5vGiHzqnrgDu1", + "type": "function", + "function": { + "name": "read", + "arguments": "{\"filename\": \"testdata/SamplesReadme/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "tools: sys.find, sys.read, summary\n\nGenerate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.\n\n---\nname: summary\ndescription: Summarize a gpt file\nargs: file: filename to summarize\ntools: sys.read\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.\n", + "name": "read", + "tool_call_id": "toolu_01Vt9aQ5wYA5vGiHzqnrgDu1" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:03:02.794299-04:00", + "callContext": { + "id": "toolu_013SmwvbjZPRdmiS1kSKGMAX", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428959", + "usage": {}, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "Based on the contents of the file \"testdata/SamplesReadme/test.gpt\", I can provide you with a brief description of its contents and the technique it's trying to demonstrate:\n\nThe GPTScript file contains a script designed to generate a readme that provides a consolidated summary of each *.gpt file in the testdata directory. Here's a breakdown of its contents and techniques:\n\n1. Tools used: The script utilizes three tools: sys.find, sys.read, and a custom tool called \"summary\".\n\n2. Main functionality: The script is intended to create a readme with summaries of GPTScript files, including links to the referenced files.\n\n3. Custom tool definition: The file defines a custom tool called \"summary\" with the following properties:\n - Name: summary\n - Description: Summarize a gpt file\n - Arguments: file (filename to summarize)\n - Tools used: sys.read\n\n4. Summarization technique: The \"summary\" tool is designed to read a given GPTScript file and provide a brief description of its contents and the technique it's demonstrating.\n\n5. AI prompt: The script includes a prompt for an AI to read the specified file, recognize it as a GPTScript file, and generate a concise description of its contents and purpose.\n\nThe main technique this file is trying to demonstrate is the creation of a custom tool within a GPTScript that can be used to summarize other GPTScript files. This approach allows for a meta-level analysis of GPTScript files, which can be useful for documentation, organization, or quick reference purposes. The script showcases how GPTScript can be used to automate the process of generating documentation for a collection of scripts." + } + ], + "usage": {} + } + }, + { + "time": "2024-08-23T12:03:02.794331-04:00", + "callContext": { + "id": "toolu_013SmwvbjZPRdmiS1kSKGMAX", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callFinish", + "usage": {}, + "content": "Based on the contents of the file \"testdata/SamplesReadme/test.gpt\", I can provide you with a brief description of its contents and the technique it's trying to demonstrate:\n\nThe GPTScript file contains a script designed to generate a readme that provides a consolidated summary of each *.gpt file in the testdata directory. Here's a breakdown of its contents and techniques:\n\n1. Tools used: The script utilizes three tools: sys.find, sys.read, and a custom tool called \"summary\".\n\n2. Main functionality: The script is intended to create a readme with summaries of GPTScript files, including links to the referenced files.\n\n3. Custom tool definition: The file defines a custom tool called \"summary\" with the following properties:\n - Name: summary\n - Description: Summarize a gpt file\n - Arguments: file (filename to summarize)\n - Tools used: sys.read\n\n4. Summarization technique: The \"summary\" tool is designed to read a given GPTScript file and provide a brief description of its contents and the technique it's demonstrating.\n\n5. AI prompt: The script includes a prompt for an AI to read the specified file, recognize it as a GPTScript file, and generate a concise description of its contents and purpose.\n\nThe main technique this file is trying to demonstrate is the creation of a custom tool within a GPTScript that can be used to summarize other GPTScript files. This approach allows for a meta-level analysis of GPTScript files, which can be useful for documentation, organization, or quick reference purposes. The script showcases how GPTScript can be used to automate the process of generating documentation for a collection of scripts." + }, + { + "time": "2024-08-23T12:03:02.794354-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:03:03.093811-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428960", + "usage": {}, + "chatRequest": { + "model": "claude-3-5-sonnet-20240620", + "messages": [ + { + "role": "system", + "content": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "toolu_01YWQ7wLRQ7tv4dSUJ6drs6Z", + "type": "function", + "function": { + "name": "find", + "arguments": "{\"directory\": \"testdata\", \"pattern\": \"*.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "testdata/Bob/test.gpt\ntestdata/BobAsShell/test.gpt\ntestdata/SamplesReadme/test.gpt", + "name": "find", + "tool_call_id": "toolu_01YWQ7wLRQ7tv4dSUJ6drs6Z" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "toolu_01W6GYNz1MwRBgehjZQQCWz3", + "type": "function", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "Thank you for providing the GPTScript file. I've read its contents, and I'll briefly describe what it contains and the technique it's trying to demonstrate.\n\nThe GPTScript file \"test.gpt\" is demonstrating a simple AI automation script that involves interaction with a simulated AI tool or agent named \"Bob\". Here's a breakdown of its contents and the technique it's showcasing:\n\n1. Content Description:\n - The script defines a tool called \"bob\".\n - It instructs to ask Bob a specific question: \"how are you doing\".\n - It then directs to repeat Bob's reply exactly.\n - The script includes a definition for the \"bob\" tool, describing it as a friendly character.\n - It specifies an argument \"question\" for interacting with Bob.\n - Finally, it provides a specific response format for when Bob is asked how he's doing.\n\n2. Technique Demonstration:\n The script is demonstrating several key concepts in AI automation scripting:\n\n a) Tool Definition: It shows how to define a custom AI tool or agent (in this case, \"bob\") within a script.\n \n b) Parameterized Interactions: The script demonstrates how to set up parameterized interactions with an AI tool, using the \"question\" argument.\n \n c) Scripted Responses: It showcases how to create scripted or predefined responses for specific inputs. In this case, when asked \"how are you doing\", Bob has a specific, templated response.\n \n d) String Interpolation: The response uses string interpolation (${QUESTION}) to incorporate the input question into the output, demonstrating dynamic response generation.\n \n e) Exact Output Control: The script emphasizes exact repetition of responses, showing how GPTScript can be used to control AI outputs precisely.\n\nIn summary, this GPTScript file is a simple yet effective demonstration of creating a basic interactive AI tool with predefined behaviors and responses. It showcases the potential of GPTScript for crafting specific AI interactions and responses in an automation context.", + "name": "summary", + "tool_call_id": "toolu_01W6GYNz1MwRBgehjZQQCWz3" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "toolu_01VosVGbzD4M8g6jw5ZQUgQy", + "type": "function", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "I've read the contents of the file \"testdata/BobAsShell/test.gpt\". This is a sample GPTScript file that demonstrates a simple interaction with a custom AI tool named \"Bob\". Let me briefly describe the contents and the technique it's trying to demonstrate:\n\n1. Contents of the GPTScript file:\n - The file starts by declaring the tool it will use: \"bob\"\n - It then provides an instruction to ask Bob \"how are you doing\" and repeat his reply exactly.\n - After that, there's a section that defines the \"bob\" tool:\n - It gives Bob a name and a description: \"I'm Bob, a friendly guy.\"\n - It specifies that Bob takes one argument: \"question\"\n - The implementation of Bob is written in Bash script, which echoes a friendly response incorporating the question asked.\n\n2. Technique demonstrated:\n This GPTScript file is demonstrating the creation and use of a custom AI tool within the GPTScript environment. Specifically, it shows:\n\n a. Tool Declaration: How to declare a tool that will be used in the script.\n b. Tool Definition: How to define a custom tool, including its name, description, and parameters.\n c. Tool Implementation: How to implement the tool's functionality (in this case, using a Bash script).\n d. Tool Usage: How to use the defined tool within the script by asking it a question.\n\nThe technique showcases the flexibility of GPTScript in integrating custom tools that can be implemented in various ways (like Bash scripts) and then used seamlessly within the AI conversation flow. This allows for extending the capabilities of the AI system with custom, potentially external functionalities.\n\nIn this specific example, \"Bob\" is a simple tool that responds to questions in a friendly manner, demonstrating how personality or specific response patterns can be incorporated into custom tools in GPTScript.", + "name": "summary", + "tool_call_id": "toolu_01VosVGbzD4M8g6jw5ZQUgQy" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "toolu_013SmwvbjZPRdmiS1kSKGMAX", + "type": "function", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "Based on the contents of the file \"testdata/SamplesReadme/test.gpt\", I can provide you with a brief description of its contents and the technique it's trying to demonstrate:\n\nThe GPTScript file contains a script designed to generate a readme that provides a consolidated summary of each *.gpt file in the testdata directory. Here's a breakdown of its contents and techniques:\n\n1. Tools used: The script utilizes three tools: sys.find, sys.read, and a custom tool called \"summary\".\n\n2. Main functionality: The script is intended to create a readme with summaries of GPTScript files, including links to the referenced files.\n\n3. Custom tool definition: The file defines a custom tool called \"summary\" with the following properties:\n - Name: summary\n - Description: Summarize a gpt file\n - Arguments: file (filename to summarize)\n - Tools used: sys.read\n\n4. Summarization technique: The \"summary\" tool is designed to read a given GPTScript file and provide a brief description of its contents and the technique it's demonstrating.\n\n5. AI prompt: The script includes a prompt for an AI to read the specified file, recognize it as a GPTScript file, and generate a concise description of its contents and purpose.\n\nThe main technique this file is trying to demonstrate is the creation of a custom tool within a GPTScript that can be used to summarize other GPTScript files. This approach allows for a meta-level analysis of GPTScript files, which can be useful for documentation, organization, or quick reference purposes. The script showcases how GPTScript can be used to automate the process of generating documentation for a collection of scripts.", + "name": "summary", + "tool_call_id": "toolu_013SmwvbjZPRdmiS1kSKGMAX" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "parameters": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "summary", + "description": "Summarize a gpt file", + "parameters": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:03:11.019312-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428960", + "usage": {}, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "Based on the summaries of the GPTScript files found in the testdata directory, I'll now generate a README with consolidated summaries for each file, including links to the referenced files:\n\n# GPTScript Files Summary\n\n## [testdata/Bob/test.gpt](testdata/Bob/test.gpt)\n\nThis GPTScript file demonstrates a simple AI automation script involving interaction with a simulated AI tool or agent named \"Bob\". Key features include:\n\n- Definition of a custom AI tool called \"bob\"\n- Demonstration of parameterized interactions with the AI tool\n- Showcase of scripted responses for specific inputs\n- Use of string interpolation for dynamic response generation\n- Emphasis on exact output control\n\nThe script effectively demonstrates the creation of a basic interactive AI tool with predefined behaviors and responses, highlighting the potential of GPTScript for crafting specific AI interactions in an automation context.\n\n## [testdata/BobAsShell/test.gpt](testdata/BobAsShell/test.gpt)\n\nThis GPTScript file showcases the creation and use of a custom AI tool named \"Bob\" within the GPTScript environment. Notable aspects include:\n\n- Declaration and definition of a custom tool\n- Implementation of the tool's functionality using a Bash script\n- Demonstration of tool usage within the script\n- Integration of personality into the custom tool's responses\n\nThe script illustrates the flexibility of GPTScript in integrating custom tools that can be implemented in various ways (like Bash scripts) and then used seamlessly within the AI conversation flow. This allows for extending the capabilities of the AI system with custom, potentially external functionalities.\n\n## [testdata/SamplesReadme/test.gpt](testdata/SamplesReadme/test.gpt)\n\nThis GPTScript file contains a script designed to generate a readme that provides a consolidated summary of each *.gpt file in the testdata directory. Key features include:\n\n- Utilization of multiple tools: sys.find, sys.read, and a custom \"summary\" tool\n- Definition of a custom \"summary\" tool for summarizing GPTScript files\n- Implementation of a meta-level analysis of GPTScript files\n- Automation of documentation generation for a collection of scripts\n\nThe script demonstrates how GPTScript can be used to create custom tools for analyzing and documenting other GPTScript files, showcasing its potential for automating meta-level tasks and generating documentation.\n\nThis README provides an overview of the GPTScript files found in the testdata directory, highlighting their key features and demonstrating various techniques for working with GPTScript." + } + ], + "usage": {} + } + }, + { + "time": "2024-08-23T12:03:11.019337-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callFinish", + "usage": {}, + "content": "Based on the summaries of the GPTScript files found in the testdata directory, I'll now generate a README with consolidated summaries for each file, including links to the referenced files:\n\n# GPTScript Files Summary\n\n## [testdata/Bob/test.gpt](testdata/Bob/test.gpt)\n\nThis GPTScript file demonstrates a simple AI automation script involving interaction with a simulated AI tool or agent named \"Bob\". Key features include:\n\n- Definition of a custom AI tool called \"bob\"\n- Demonstration of parameterized interactions with the AI tool\n- Showcase of scripted responses for specific inputs\n- Use of string interpolation for dynamic response generation\n- Emphasis on exact output control\n\nThe script effectively demonstrates the creation of a basic interactive AI tool with predefined behaviors and responses, highlighting the potential of GPTScript for crafting specific AI interactions in an automation context.\n\n## [testdata/BobAsShell/test.gpt](testdata/BobAsShell/test.gpt)\n\nThis GPTScript file showcases the creation and use of a custom AI tool named \"Bob\" within the GPTScript environment. Notable aspects include:\n\n- Declaration and definition of a custom tool\n- Implementation of the tool's functionality using a Bash script\n- Demonstration of tool usage within the script\n- Integration of personality into the custom tool's responses\n\nThe script illustrates the flexibility of GPTScript in integrating custom tools that can be implemented in various ways (like Bash scripts) and then used seamlessly within the AI conversation flow. This allows for extending the capabilities of the AI system with custom, potentially external functionalities.\n\n## [testdata/SamplesReadme/test.gpt](testdata/SamplesReadme/test.gpt)\n\nThis GPTScript file contains a script designed to generate a readme that provides a consolidated summary of each *.gpt file in the testdata directory. Key features include:\n\n- Utilization of multiple tools: sys.find, sys.read, and a custom \"summary\" tool\n- Definition of a custom \"summary\" tool for summarizing GPTScript files\n- Implementation of a meta-level analysis of GPTScript files\n- Automation of documentation generation for a collection of scripts\n\nThe script demonstrates how GPTScript can be used to create custom tools for analyzing and documenting other GPTScript files, showcasing its potential for automating meta-level tasks and generating documentation.\n\nThis README provides an overview of the GPTScript files found in the testdata directory, highlighting their key features and demonstrating various techniques for working with GPTScript." + }, + { + "time": "2024-08-23T12:03:11.019355-04:00", + "type": "runFinish", + "usage": {} + } +] diff --git a/pkg/tests/smoke/testdata/SamplesReadme/gpt-4-turbo-2024-04-09-expected.json b/pkg/tests/smoke/testdata/SamplesReadme/gpt-4-turbo-2024-04-09-expected.json new file mode 100644 index 00000000..1691d356 --- /dev/null +++ b/pkg/tests/smoke/testdata/SamplesReadme/gpt-4-turbo-2024-04-09-expected.json @@ -0,0 +1,3152 @@ +[ + { + "time": "2024-08-23T12:02:30.704153-04:00", + "type": "runStart", + "usage": {} + }, + { + "time": "2024-08-23T12:02:30.704518-04:00", + "callContext": { + "id": "1724428951", + "tool": { + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callStart", + "usage": {} + }, + { + "time": "2024-08-23T12:02:30.704572-04:00", + "callContext": { + "id": "1724428951", + "tool": { + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428952", + "usage": {}, + "chatRequest": { + "model": "gpt-4-turbo-2024-04-09", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nGenerate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file." + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "parameters": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "summary", + "description": "Summarize a gpt file", + "parameters": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:31.630767-04:00", + "callContext": { + "id": "1724428951", + "tool": { + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428952", + "usage": { + "promptTokens": 279, + "completionTokens": 15, + "totalTokens": 294 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_pV8RVkvcyzi8QbqeXcdCkAZd", + "function": { + "name": "find", + "arguments": "{\"pattern\":\"*.gpt\"}" + } + } + } + ], + "usage": { + "promptTokens": 279, + "completionTokens": 15, + "totalTokens": 294 + } + } + }, + { + "time": "2024-08-23T12:02:31.630876-04:00", + "callContext": { + "id": "1724428951", + "tool": { + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolSubCalls": { + "call_pV8RVkvcyzi8QbqeXcdCkAZd": { + "toolID": "sys.find", + "input": "{\"pattern\":\"*.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:31.630937-04:00", + "callContext": { + "id": "call_pV8RVkvcyzi8QbqeXcdCkAZd", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724428951", + "displayText": "Finding `*.gpt` in `.`" + }, + "type": "callStart", + "usage": {}, + "content": "{\"pattern\":\"*.gpt\"}" + }, + { + "time": "2024-08-23T12:02:31.631018-04:00", + "callContext": { + "id": "call_pV8RVkvcyzi8QbqeXcdCkAZd", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724428951", + "displayText": "Finding `*.gpt` in `.`" + }, + "type": "callChat", + "chatCompletionId": "1724428953", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T12:02:31.631307-04:00", + "callContext": { + "id": "call_pV8RVkvcyzi8QbqeXcdCkAZd", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724428951", + "displayText": "Finding `*.gpt` in `.`" + }, + "type": "callChat", + "chatCompletionId": "1724428953", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:31.631343-04:00", + "callContext": { + "id": "call_pV8RVkvcyzi8QbqeXcdCkAZd", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724428951", + "displayText": "Finding `*.gpt` in `.`" + }, + "type": "callFinish", + "usage": {}, + "content": "testdata/Bob/test.gpt\ntestdata/BobAsShell/test.gpt\ntestdata/SamplesReadme/test.gpt" + }, + { + "time": "2024-08-23T12:02:31.631378-04:00", + "callContext": { + "id": "1724428951", + "tool": { + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:31.63142-04:00", + "callContext": { + "id": "1724428951", + "tool": { + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428954", + "usage": {}, + "chatRequest": { + "model": "gpt-4-turbo-2024-04-09", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nGenerate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_pV8RVkvcyzi8QbqeXcdCkAZd", + "type": "function", + "function": { + "name": "find", + "arguments": "{\"pattern\":\"*.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "testdata/Bob/test.gpt\ntestdata/BobAsShell/test.gpt\ntestdata/SamplesReadme/test.gpt", + "name": "find", + "tool_call_id": "call_pV8RVkvcyzi8QbqeXcdCkAZd" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "parameters": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "summary", + "description": "Summarize a gpt file", + "parameters": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:34.373298-04:00", + "callContext": { + "id": "1724428951", + "tool": { + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428954", + "usage": { + "promptTokens": 325, + "completionTokens": 73, + "totalTokens": 398 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_UJGEKUkaky3cULZKZNu3Cezo", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + } + }, + { + "toolCall": { + "index": 1, + "id": "call_wpsPQf57CvelJMMqc5pWuzYu", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + } + } + }, + { + "toolCall": { + "index": 2, + "id": "call_Lxtq42Kdm8tva08cXF30Bfps", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + } + } + } + ], + "usage": { + "promptTokens": 325, + "completionTokens": 73, + "totalTokens": 398 + } + } + }, + { + "time": "2024-08-23T12:02:34.373305-04:00", + "callContext": { + "id": "1724428951", + "tool": { + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolSubCalls": { + "call_Lxtq42Kdm8tva08cXF30Bfps": { + "toolID": "testdata/SamplesReadme/test.gpt:summary", + "input": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + }, + "call_UJGEKUkaky3cULZKZNu3Cezo": { + "toolID": "testdata/SamplesReadme/test.gpt:summary", + "input": "{\"file\": \"testdata/Bob/test.gpt\"}" + }, + "call_wpsPQf57CvelJMMqc5pWuzYu": { + "toolID": "testdata/SamplesReadme/test.gpt:summary", + "input": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:34.373546-04:00", + "callContext": { + "id": "call_Lxtq42Kdm8tva08cXF30Bfps", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callStart", + "usage": {}, + "content": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:34.373547-04:00", + "callContext": { + "id": "call_wpsPQf57CvelJMMqc5pWuzYu", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callStart", + "usage": {}, + "content": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:34.373556-04:00", + "callContext": { + "id": "call_UJGEKUkaky3cULZKZNu3Cezo", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callStart", + "usage": {}, + "content": "{\"file\": \"testdata/Bob/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:34.373937-04:00", + "callContext": { + "id": "call_Lxtq42Kdm8tva08cXF30Bfps", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callChat", + "chatCompletionId": "1724428955", + "usage": {}, + "chatRequest": { + "model": "gpt-4-turbo-2024-04-09", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:34.374034-04:00", + "callContext": { + "id": "call_wpsPQf57CvelJMMqc5pWuzYu", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callChat", + "chatCompletionId": "1724428956", + "usage": {}, + "chatRequest": { + "model": "gpt-4-turbo-2024-04-09", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:34.374245-04:00", + "callContext": { + "id": "call_UJGEKUkaky3cULZKZNu3Cezo", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callChat", + "chatCompletionId": "1724428957", + "usage": {}, + "chatRequest": { + "model": "gpt-4-turbo-2024-04-09", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:35.39123-04:00", + "callContext": { + "id": "call_UJGEKUkaky3cULZKZNu3Cezo", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callChat", + "chatCompletionId": "1724428957", + "usage": { + "promptTokens": 188, + "completionTokens": 18, + "totalTokens": 206 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_EEOQrwmvVIG3ABCkHYFD0hSn", + "function": { + "name": "read", + "arguments": "{\"filename\":\"testdata/Bob/test.gpt\"}" + } + } + } + ], + "usage": { + "promptTokens": 188, + "completionTokens": 18, + "totalTokens": 206 + } + } + }, + { + "time": "2024-08-23T12:02:35.391358-04:00", + "callContext": { + "id": "call_UJGEKUkaky3cULZKZNu3Cezo", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "toolSubCalls": { + "call_EEOQrwmvVIG3ABCkHYFD0hSn": { + "toolID": "sys.read", + "input": "{\"filename\":\"testdata/Bob/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:35.391487-04:00", + "callContext": { + "id": "call_EEOQrwmvVIG3ABCkHYFD0hSn", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_UJGEKUkaky3cULZKZNu3Cezo", + "displayText": "Reading `testdata/Bob/test.gpt`" + }, + "type": "callStart", + "usage": {}, + "content": "{\"filename\":\"testdata/Bob/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:35.391705-04:00", + "callContext": { + "id": "call_EEOQrwmvVIG3ABCkHYFD0hSn", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_UJGEKUkaky3cULZKZNu3Cezo", + "displayText": "Reading `testdata/Bob/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428958", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T12:02:35.391975-04:00", + "callContext": { + "id": "call_EEOQrwmvVIG3ABCkHYFD0hSn", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_UJGEKUkaky3cULZKZNu3Cezo", + "displayText": "Reading `testdata/Bob/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428958", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:35.392097-04:00", + "callContext": { + "id": "call_EEOQrwmvVIG3ABCkHYFD0hSn", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_UJGEKUkaky3cULZKZNu3Cezo", + "displayText": "Reading `testdata/Bob/test.gpt`" + }, + "type": "callFinish", + "usage": {}, + "content": "tools: bob\n\nAsk Bob \"how are you doing\" and repeat his reply exactly.\n\n---\nname: bob\ndescription: I'm Bob, a friendly guy.\nargs: question: The question to ask Bob.\n\nWhen asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"\n" + }, + { + "time": "2024-08-23T12:02:35.392182-04:00", + "callContext": { + "id": "call_UJGEKUkaky3cULZKZNu3Cezo", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:35.3923-04:00", + "callContext": { + "id": "call_UJGEKUkaky3cULZKZNu3Cezo", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callChat", + "chatCompletionId": "1724428959", + "usage": {}, + "chatRequest": { + "model": "gpt-4-turbo-2024-04-09", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/Bob/test.gpt\"}" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_EEOQrwmvVIG3ABCkHYFD0hSn", + "type": "function", + "function": { + "name": "read", + "arguments": "{\"filename\":\"testdata/Bob/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "tools: bob\n\nAsk Bob \"how are you doing\" and repeat his reply exactly.\n\n---\nname: bob\ndescription: I'm Bob, a friendly guy.\nargs: question: The question to ask Bob.\n\nWhen asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"\n", + "name": "read", + "tool_call_id": "call_EEOQrwmvVIG3ABCkHYFD0hSn" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:35.524922-04:00", + "callContext": { + "id": "call_wpsPQf57CvelJMMqc5pWuzYu", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callChat", + "chatCompletionId": "1724428956", + "usage": { + "promptTokens": 190, + "completionTokens": 20, + "totalTokens": 210 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_UuPbpkR1GSivZ9EgqlN88ZZC", + "function": { + "name": "read", + "arguments": "{\"filename\":\"testdata/BobAsShell/test.gpt\"}" + } + } + } + ], + "usage": { + "promptTokens": 190, + "completionTokens": 20, + "totalTokens": 210 + } + } + }, + { + "time": "2024-08-23T12:02:35.525037-04:00", + "callContext": { + "id": "call_wpsPQf57CvelJMMqc5pWuzYu", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "toolSubCalls": { + "call_UuPbpkR1GSivZ9EgqlN88ZZC": { + "toolID": "sys.read", + "input": "{\"filename\":\"testdata/BobAsShell/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:35.525179-04:00", + "callContext": { + "id": "call_UuPbpkR1GSivZ9EgqlN88ZZC", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_wpsPQf57CvelJMMqc5pWuzYu", + "displayText": "Reading `testdata/BobAsShell/test.gpt`" + }, + "type": "callStart", + "usage": {}, + "content": "{\"filename\":\"testdata/BobAsShell/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:35.525364-04:00", + "callContext": { + "id": "call_UuPbpkR1GSivZ9EgqlN88ZZC", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_wpsPQf57CvelJMMqc5pWuzYu", + "displayText": "Reading `testdata/BobAsShell/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428960", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T12:02:35.525519-04:00", + "callContext": { + "id": "call_UuPbpkR1GSivZ9EgqlN88ZZC", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_wpsPQf57CvelJMMqc5pWuzYu", + "displayText": "Reading `testdata/BobAsShell/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428960", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:35.5256-04:00", + "callContext": { + "id": "call_UuPbpkR1GSivZ9EgqlN88ZZC", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_wpsPQf57CvelJMMqc5pWuzYu", + "displayText": "Reading `testdata/BobAsShell/test.gpt`" + }, + "type": "callFinish", + "usage": {}, + "content": "\ntools: bob\n\nAsk Bob \"how are you doing\" and repeat his reply exactly.\n\n---\nname: bob\ndescription: I'm Bob, a friendly guy.\nargs: question: The question to ask Bob.\n\n#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"\n" + }, + { + "time": "2024-08-23T12:02:35.525685-04:00", + "callContext": { + "id": "call_wpsPQf57CvelJMMqc5pWuzYu", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:35.525801-04:00", + "callContext": { + "id": "call_wpsPQf57CvelJMMqc5pWuzYu", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callChat", + "chatCompletionId": "1724428961", + "usage": {}, + "chatRequest": { + "model": "gpt-4-turbo-2024-04-09", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_UuPbpkR1GSivZ9EgqlN88ZZC", + "type": "function", + "function": { + "name": "read", + "arguments": "{\"filename\":\"testdata/BobAsShell/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "\ntools: bob\n\nAsk Bob \"how are you doing\" and repeat his reply exactly.\n\n---\nname: bob\ndescription: I'm Bob, a friendly guy.\nargs: question: The question to ask Bob.\n\n#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"\n", + "name": "read", + "tool_call_id": "call_UuPbpkR1GSivZ9EgqlN88ZZC" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:35.691021-04:00", + "callContext": { + "id": "call_Lxtq42Kdm8tva08cXF30Bfps", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callChat", + "chatCompletionId": "1724428955", + "usage": { + "promptTokens": 190, + "completionTokens": 35, + "totalTokens": 225 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_EXwAUFgTkXhu0h0U11ekI13P", + "function": { + "name": "read", + "arguments": "{\"filename\": \"testdata/SamplesReadme/test.gpt\"}" + } + } + } + ], + "usage": { + "promptTokens": 190, + "completionTokens": 35, + "totalTokens": 225 + } + } + }, + { + "time": "2024-08-23T12:02:35.691079-04:00", + "callContext": { + "id": "call_Lxtq42Kdm8tva08cXF30Bfps", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "toolSubCalls": { + "call_EXwAUFgTkXhu0h0U11ekI13P": { + "toolID": "sys.read", + "input": "{\"filename\": \"testdata/SamplesReadme/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:35.691127-04:00", + "callContext": { + "id": "call_EXwAUFgTkXhu0h0U11ekI13P", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_Lxtq42Kdm8tva08cXF30Bfps", + "displayText": "Reading `testdata/SamplesReadme/test.gpt`" + }, + "type": "callStart", + "usage": {}, + "content": "{\"filename\": \"testdata/SamplesReadme/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:35.691188-04:00", + "callContext": { + "id": "call_EXwAUFgTkXhu0h0U11ekI13P", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_Lxtq42Kdm8tva08cXF30Bfps", + "displayText": "Reading `testdata/SamplesReadme/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428962", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T12:02:35.691261-04:00", + "callContext": { + "id": "call_EXwAUFgTkXhu0h0U11ekI13P", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_Lxtq42Kdm8tva08cXF30Bfps", + "displayText": "Reading `testdata/SamplesReadme/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428962", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:35.69129-04:00", + "callContext": { + "id": "call_EXwAUFgTkXhu0h0U11ekI13P", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_Lxtq42Kdm8tva08cXF30Bfps", + "displayText": "Reading `testdata/SamplesReadme/test.gpt`" + }, + "type": "callFinish", + "usage": {}, + "content": "tools: sys.find, sys.read, summary\n\nGenerate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.\n\n---\nname: summary\ndescription: Summarize a gpt file\nargs: file: filename to summarize\ntools: sys.read\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.\n" + }, + { + "time": "2024-08-23T12:02:35.691317-04:00", + "callContext": { + "id": "call_Lxtq42Kdm8tva08cXF30Bfps", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:35.691352-04:00", + "callContext": { + "id": "call_Lxtq42Kdm8tva08cXF30Bfps", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callChat", + "chatCompletionId": "1724428963", + "usage": {}, + "chatRequest": { + "model": "gpt-4-turbo-2024-04-09", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_EXwAUFgTkXhu0h0U11ekI13P", + "type": "function", + "function": { + "name": "read", + "arguments": "{\"filename\": \"testdata/SamplesReadme/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "tools: sys.find, sys.read, summary\n\nGenerate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.\n\n---\nname: summary\ndescription: Summarize a gpt file\nargs: file: filename to summarize\ntools: sys.read\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.\n", + "name": "read", + "tool_call_id": "call_EXwAUFgTkXhu0h0U11ekI13P" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:38.194735-04:00", + "callContext": { + "id": "call_UJGEKUkaky3cULZKZNu3Cezo", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callChat", + "chatCompletionId": "1724428959", + "usage": { + "promptTokens": 282, + "completionTokens": 69, + "totalTokens": 351 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "The GPTScript file contains a script that demonstrates how to interact with a tool named \"Bob.\" The script instructs to ask Bob \"how are you doing\" and then to repeat his reply exactly. The tool \"Bob\" is described as a friendly guy who responds to the question about how he is doing with a specific formatted message." + } + ], + "usage": { + "promptTokens": 282, + "completionTokens": 69, + "totalTokens": 351 + } + } + }, + { + "time": "2024-08-23T12:02:38.194813-04:00", + "callContext": { + "id": "call_UJGEKUkaky3cULZKZNu3Cezo", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callFinish", + "usage": {}, + "content": "The GPTScript file contains a script that demonstrates how to interact with a tool named \"Bob.\" The script instructs to ask Bob \"how are you doing\" and then to repeat his reply exactly. The tool \"Bob\" is described as a friendly guy who responds to the question about how he is doing with a specific formatted message." + }, + { + "time": "2024-08-23T12:02:38.963872-04:00", + "callContext": { + "id": "call_Lxtq42Kdm8tva08cXF30Bfps", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callChat", + "chatCompletionId": "1724428963", + "usage": { + "promptTokens": 332, + "completionTokens": 90, + "totalTokens": 422 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "The GPTScript file contains a script designed to generate a README document that provides a consolidated summary of each \"*.gpt\" file in the \"testdata\" directory. Each entry in the README includes a link to the referenced file. The script uses tools such as `sys.find`, `sys.read`, and `summary` to accomplish this task. The technique demonstrated in the file is the automation of documentation generation for multiple script files within a directory." + } + ], + "usage": { + "promptTokens": 332, + "completionTokens": 90, + "totalTokens": 422 + } + } + }, + { + "time": "2024-08-23T12:02:38.963896-04:00", + "callContext": { + "id": "call_Lxtq42Kdm8tva08cXF30Bfps", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callFinish", + "usage": {}, + "content": "The GPTScript file contains a script designed to generate a README document that provides a consolidated summary of each \"*.gpt\" file in the \"testdata\" directory. Each entry in the README includes a link to the referenced file. The script uses tools such as `sys.find`, `sys.read`, and `summary` to accomplish this task. The technique demonstrated in the file is the automation of documentation generation for multiple script files within a directory." + }, + { + "time": "2024-08-23T12:02:39.142661-04:00", + "callContext": { + "id": "call_wpsPQf57CvelJMMqc5pWuzYu", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callChat", + "chatCompletionId": "1724428961", + "usage": { + "promptTokens": 282, + "completionTokens": 92, + "totalTokens": 374 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "The GPTScript file contains a script that interacts with a tool named \"Bob.\" The script is designed to ask Bob \"how are you doing\" and then repeat his reply exactly. The tool \"Bob\" is described as a friendly guy, and the script includes a bash script section that outputs a response thanking the user for the question and stating that Bob is doing great. This file demonstrates a simple interaction technique with a scripted character using a predefined response." + } + ], + "usage": { + "promptTokens": 282, + "completionTokens": 92, + "totalTokens": 374 + } + } + }, + { + "time": "2024-08-23T12:02:39.142716-04:00", + "callContext": { + "id": "call_wpsPQf57CvelJMMqc5pWuzYu", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428951" + }, + "type": "callFinish", + "usage": {}, + "content": "The GPTScript file contains a script that interacts with a tool named \"Bob.\" The script is designed to ask Bob \"how are you doing\" and then repeat his reply exactly. The tool \"Bob\" is described as a friendly guy, and the script includes a bash script section that outputs a response thanking the user for the question and stating that Bob is doing great. This file demonstrates a simple interaction technique with a scripted character using a predefined response." + }, + { + "time": "2024-08-23T12:02:39.142748-04:00", + "callContext": { + "id": "1724428951", + "tool": { + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolResults": 3, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:39.142815-04:00", + "callContext": { + "id": "1724428951", + "tool": { + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428964", + "usage": {}, + "chatRequest": { + "model": "gpt-4-turbo-2024-04-09", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nGenerate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_pV8RVkvcyzi8QbqeXcdCkAZd", + "type": "function", + "function": { + "name": "find", + "arguments": "{\"pattern\":\"*.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "testdata/Bob/test.gpt\ntestdata/BobAsShell/test.gpt\ntestdata/SamplesReadme/test.gpt", + "name": "find", + "tool_call_id": "call_pV8RVkvcyzi8QbqeXcdCkAZd" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_UJGEKUkaky3cULZKZNu3Cezo", + "type": "function", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + }, + { + "id": "call_wpsPQf57CvelJMMqc5pWuzYu", + "type": "function", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + } + }, + { + "id": "call_Lxtq42Kdm8tva08cXF30Bfps", + "type": "function", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "The GPTScript file contains a script that demonstrates how to interact with a tool named \"Bob.\" The script instructs to ask Bob \"how are you doing\" and then to repeat his reply exactly. The tool \"Bob\" is described as a friendly guy who responds to the question about how he is doing with a specific formatted message.", + "name": "summary", + "tool_call_id": "call_UJGEKUkaky3cULZKZNu3Cezo" + }, + { + "role": "tool", + "content": "The GPTScript file contains a script that interacts with a tool named \"Bob.\" The script is designed to ask Bob \"how are you doing\" and then repeat his reply exactly. The tool \"Bob\" is described as a friendly guy, and the script includes a bash script section that outputs a response thanking the user for the question and stating that Bob is doing great. This file demonstrates a simple interaction technique with a scripted character using a predefined response.", + "name": "summary", + "tool_call_id": "call_wpsPQf57CvelJMMqc5pWuzYu" + }, + { + "role": "tool", + "content": "The GPTScript file contains a script designed to generate a README document that provides a consolidated summary of each \"*.gpt\" file in the \"testdata\" directory. Each entry in the README includes a link to the referenced file. The script uses tools such as `sys.find`, `sys.read`, and `summary` to accomplish this task. The technique demonstrated in the file is the automation of documentation generation for multiple script files within a directory.", + "name": "summary", + "tool_call_id": "call_Lxtq42Kdm8tva08cXF30Bfps" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "parameters": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "summary", + "description": "Summarize a gpt file", + "parameters": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:49.535183-04:00", + "callContext": { + "id": "1724428951", + "tool": { + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428964", + "usage": { + "promptTokens": 660, + "completionTokens": 322, + "totalTokens": 982 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "### README for GPT Files in Testdata Directory\n\n1. **[Bob/test.gpt](testdata/Bob/test.gpt)** \n The GPTScript file contains a script that demonstrates how to interact with a tool named \"Bob.\" The script instructs to ask Bob \"how are you doing\" and then to repeat his reply exactly. The tool \"Bob\" is described as a friendly guy who responds to the question about how he is doing with a specific formatted message.\n\n2. **[BobAsShell/test.gpt](testdata/BobAsShell/test.gpt)** \n The GPTScript file contains a script that interacts with a tool named \"Bob.\" The script is designed to ask Bob \"how are you doing\" and then repeat his reply exactly. The tool \"Bob\" is described as a friendly guy, and the script includes a bash script section that outputs a response thanking the user for the question and stating that Bob is doing great. This file demonstrates a simple interaction technique with a scripted character using a predefined response.\n\n3. **[SamplesReadme/test.gpt](testdata/SamplesReadme/test.gpt)** \n The GPTScript file contains a script designed to generate a README document that provides a consolidated summary of each \"*.gpt\" file in the \"testdata\" directory. Each entry in the README includes a link to the referenced file. The script uses tools such as `sys.find`, `sys.read`, and `summary` to accomplish this task. The technique demonstrated in the file is the automation of documentation generation for multiple script files within a directory." + } + ], + "usage": { + "promptTokens": 660, + "completionTokens": 322, + "totalTokens": 982 + } + } + }, + { + "time": "2024-08-23T12:02:49.53522-04:00", + "callContext": { + "id": "1724428951", + "tool": { + "modelName": "gpt-4-turbo-2024-04-09", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callFinish", + "usage": {}, + "content": "### README for GPT Files in Testdata Directory\n\n1. **[Bob/test.gpt](testdata/Bob/test.gpt)** \n The GPTScript file contains a script that demonstrates how to interact with a tool named \"Bob.\" The script instructs to ask Bob \"how are you doing\" and then to repeat his reply exactly. The tool \"Bob\" is described as a friendly guy who responds to the question about how he is doing with a specific formatted message.\n\n2. **[BobAsShell/test.gpt](testdata/BobAsShell/test.gpt)** \n The GPTScript file contains a script that interacts with a tool named \"Bob.\" The script is designed to ask Bob \"how are you doing\" and then repeat his reply exactly. The tool \"Bob\" is described as a friendly guy, and the script includes a bash script section that outputs a response thanking the user for the question and stating that Bob is doing great. This file demonstrates a simple interaction technique with a scripted character using a predefined response.\n\n3. **[SamplesReadme/test.gpt](testdata/SamplesReadme/test.gpt)** \n The GPTScript file contains a script designed to generate a README document that provides a consolidated summary of each \"*.gpt\" file in the \"testdata\" directory. Each entry in the README includes a link to the referenced file. The script uses tools such as `sys.find`, `sys.read`, and `summary` to accomplish this task. The technique demonstrated in the file is the automation of documentation generation for multiple script files within a directory." + }, + { + "time": "2024-08-23T12:02:49.535257-04:00", + "type": "runFinish", + "usage": {} + } +] diff --git a/pkg/tests/smoke/testdata/SamplesReadme/gpt-4o-2024-05-13-expected.json b/pkg/tests/smoke/testdata/SamplesReadme/gpt-4o-2024-05-13-expected.json new file mode 100644 index 00000000..edf3214a --- /dev/null +++ b/pkg/tests/smoke/testdata/SamplesReadme/gpt-4o-2024-05-13-expected.json @@ -0,0 +1,3152 @@ +[ + { + "time": "2024-08-23T12:02:23.393856-04:00", + "type": "runStart", + "usage": {} + }, + { + "time": "2024-08-23T12:02:23.394146-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callStart", + "usage": {} + }, + { + "time": "2024-08-23T12:02:23.394199-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428945", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-05-13", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nGenerate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file." + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "parameters": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "summary", + "description": "Summarize a gpt file", + "parameters": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:24.040357-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428945", + "usage": { + "promptTokens": 272, + "completionTokens": 20, + "totalTokens": 292 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_AC0tP40eH2BNMloJag3dSw0c", + "function": { + "name": "find", + "arguments": "{\"directory\":\"testdata\",\"pattern\":\"*.gpt\"}" + } + } + } + ], + "usage": { + "promptTokens": 272, + "completionTokens": 20, + "totalTokens": 292 + } + } + }, + { + "time": "2024-08-23T12:02:24.040528-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolSubCalls": { + "call_AC0tP40eH2BNMloJag3dSw0c": { + "toolID": "sys.find", + "input": "{\"directory\":\"testdata\",\"pattern\":\"*.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:24.04063-04:00", + "callContext": { + "id": "call_AC0tP40eH2BNMloJag3dSw0c", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724428944", + "displayText": "Finding `*.gpt` in `testdata`" + }, + "type": "callStart", + "usage": {}, + "content": "{\"directory\":\"testdata\",\"pattern\":\"*.gpt\"}" + }, + { + "time": "2024-08-23T12:02:24.040729-04:00", + "callContext": { + "id": "call_AC0tP40eH2BNMloJag3dSw0c", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724428944", + "displayText": "Finding `*.gpt` in `testdata`" + }, + "type": "callChat", + "chatCompletionId": "1724428946", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T12:02:24.041423-04:00", + "callContext": { + "id": "call_AC0tP40eH2BNMloJag3dSw0c", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724428944", + "displayText": "Finding `*.gpt` in `testdata`" + }, + "type": "callChat", + "chatCompletionId": "1724428946", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:24.041452-04:00", + "callContext": { + "id": "call_AC0tP40eH2BNMloJag3dSw0c", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724428944", + "displayText": "Finding `*.gpt` in `testdata`" + }, + "type": "callFinish", + "usage": {}, + "content": "testdata/Bob/test.gpt\ntestdata/BobAsShell/test.gpt\ntestdata/SamplesReadme/test.gpt" + }, + { + "time": "2024-08-23T12:02:24.041487-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:24.041507-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428947", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-05-13", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nGenerate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_AC0tP40eH2BNMloJag3dSw0c", + "type": "function", + "function": { + "name": "find", + "arguments": "{\"directory\":\"testdata\",\"pattern\":\"*.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "testdata/Bob/test.gpt\ntestdata/BobAsShell/test.gpt\ntestdata/SamplesReadme/test.gpt", + "name": "find", + "tool_call_id": "call_AC0tP40eH2BNMloJag3dSw0c" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "parameters": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "summary", + "description": "Summarize a gpt file", + "parameters": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:25.167603-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolSubCalls": { + "call_WxYHM2C2LYqefe0dnDZveAgk": { + "toolID": "testdata/SamplesReadme/test.gpt:summary", + "input": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + }, + "call_seuQJWpcuIZGsE5ew0ulVoSm": { + "toolID": "testdata/SamplesReadme/test.gpt:summary", + "input": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + }, + "call_v4fxPCcLKdcJso5SK8EEvv7g": { + "toolID": "testdata/SamplesReadme/test.gpt:summary", + "input": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:25.167611-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428947", + "usage": { + "promptTokens": 326, + "completionTokens": 77, + "totalTokens": 403 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_v4fxPCcLKdcJso5SK8EEvv7g", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + } + }, + { + "toolCall": { + "index": 1, + "id": "call_WxYHM2C2LYqefe0dnDZveAgk", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + } + } + }, + { + "toolCall": { + "index": 2, + "id": "call_seuQJWpcuIZGsE5ew0ulVoSm", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + } + } + } + ], + "usage": { + "promptTokens": 326, + "completionTokens": 77, + "totalTokens": 403 + } + } + }, + { + "time": "2024-08-23T12:02:25.167701-04:00", + "callContext": { + "id": "call_v4fxPCcLKdcJso5SK8EEvv7g", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callStart", + "usage": {}, + "content": "{\"file\": \"testdata/Bob/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:25.167701-04:00", + "callContext": { + "id": "call_WxYHM2C2LYqefe0dnDZveAgk", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callStart", + "usage": {}, + "content": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:25.167969-04:00", + "callContext": { + "id": "call_v4fxPCcLKdcJso5SK8EEvv7g", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428948", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-05-13", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:25.16806-04:00", + "callContext": { + "id": "call_WxYHM2C2LYqefe0dnDZveAgk", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428949", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-05-13", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:25.167718-04:00", + "callContext": { + "id": "call_seuQJWpcuIZGsE5ew0ulVoSm", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callStart", + "usage": {}, + "content": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:25.169569-04:00", + "callContext": { + "id": "call_seuQJWpcuIZGsE5ew0ulVoSm", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428950", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-05-13", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:25.601313-04:00", + "callContext": { + "id": "call_v4fxPCcLKdcJso5SK8EEvv7g", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428948", + "usage": { + "promptTokens": 183, + "completionTokens": 19, + "totalTokens": 202 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_1sEbslNFIGGsFjneY5oaALAY", + "function": { + "name": "read", + "arguments": "{\"filename\":\"testdata/Bob/test.gpt\"}" + } + } + } + ], + "usage": { + "promptTokens": 183, + "completionTokens": 19, + "totalTokens": 202 + } + } + }, + { + "time": "2024-08-23T12:02:25.601452-04:00", + "callContext": { + "id": "call_v4fxPCcLKdcJso5SK8EEvv7g", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "toolSubCalls": { + "call_1sEbslNFIGGsFjneY5oaALAY": { + "toolID": "sys.read", + "input": "{\"filename\":\"testdata/Bob/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:25.60158-04:00", + "callContext": { + "id": "call_1sEbslNFIGGsFjneY5oaALAY", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_v4fxPCcLKdcJso5SK8EEvv7g", + "displayText": "Reading `testdata/Bob/test.gpt`" + }, + "type": "callStart", + "usage": {}, + "content": "{\"filename\":\"testdata/Bob/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:25.601748-04:00", + "callContext": { + "id": "call_1sEbslNFIGGsFjneY5oaALAY", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_v4fxPCcLKdcJso5SK8EEvv7g", + "displayText": "Reading `testdata/Bob/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428951", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T12:02:25.601944-04:00", + "callContext": { + "id": "call_1sEbslNFIGGsFjneY5oaALAY", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_v4fxPCcLKdcJso5SK8EEvv7g", + "displayText": "Reading `testdata/Bob/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428951", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:25.60203-04:00", + "callContext": { + "id": "call_1sEbslNFIGGsFjneY5oaALAY", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_v4fxPCcLKdcJso5SK8EEvv7g", + "displayText": "Reading `testdata/Bob/test.gpt`" + }, + "type": "callFinish", + "usage": {}, + "content": "tools: bob\n\nAsk Bob \"how are you doing\" and repeat his reply exactly.\n\n---\nname: bob\ndescription: I'm Bob, a friendly guy.\nargs: question: The question to ask Bob.\n\nWhen asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"\n" + }, + { + "time": "2024-08-23T12:02:25.602117-04:00", + "callContext": { + "id": "call_v4fxPCcLKdcJso5SK8EEvv7g", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:25.602221-04:00", + "callContext": { + "id": "call_v4fxPCcLKdcJso5SK8EEvv7g", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428952", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-05-13", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/Bob/test.gpt\"}" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_1sEbslNFIGGsFjneY5oaALAY", + "type": "function", + "function": { + "name": "read", + "arguments": "{\"filename\":\"testdata/Bob/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "tools: bob\n\nAsk Bob \"how are you doing\" and repeat his reply exactly.\n\n---\nname: bob\ndescription: I'm Bob, a friendly guy.\nargs: question: The question to ask Bob.\n\nWhen asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"\n", + "name": "read", + "tool_call_id": "call_1sEbslNFIGGsFjneY5oaALAY" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:25.71099-04:00", + "callContext": { + "id": "call_WxYHM2C2LYqefe0dnDZveAgk", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428949", + "usage": { + "promptTokens": 185, + "completionTokens": 21, + "totalTokens": 206 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_1OSzBaMt9BrCjlaUGhIaBuGB", + "function": { + "name": "read", + "arguments": "{\"filename\":\"testdata/BobAsShell/test.gpt\"}" + } + } + } + ], + "usage": { + "promptTokens": 185, + "completionTokens": 21, + "totalTokens": 206 + } + } + }, + { + "time": "2024-08-23T12:02:25.711128-04:00", + "callContext": { + "id": "call_WxYHM2C2LYqefe0dnDZveAgk", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "toolSubCalls": { + "call_1OSzBaMt9BrCjlaUGhIaBuGB": { + "toolID": "sys.read", + "input": "{\"filename\":\"testdata/BobAsShell/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:25.711437-04:00", + "callContext": { + "id": "call_1OSzBaMt9BrCjlaUGhIaBuGB", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_WxYHM2C2LYqefe0dnDZveAgk", + "displayText": "Reading `testdata/BobAsShell/test.gpt`" + }, + "type": "callStart", + "usage": {}, + "content": "{\"filename\":\"testdata/BobAsShell/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:25.711886-04:00", + "callContext": { + "id": "call_1OSzBaMt9BrCjlaUGhIaBuGB", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_WxYHM2C2LYqefe0dnDZveAgk", + "displayText": "Reading `testdata/BobAsShell/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428953", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T12:02:25.712128-04:00", + "callContext": { + "id": "call_1OSzBaMt9BrCjlaUGhIaBuGB", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_WxYHM2C2LYqefe0dnDZveAgk", + "displayText": "Reading `testdata/BobAsShell/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428953", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:25.712234-04:00", + "callContext": { + "id": "call_1OSzBaMt9BrCjlaUGhIaBuGB", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_WxYHM2C2LYqefe0dnDZveAgk", + "displayText": "Reading `testdata/BobAsShell/test.gpt`" + }, + "type": "callFinish", + "usage": {}, + "content": "\ntools: bob\n\nAsk Bob \"how are you doing\" and repeat his reply exactly.\n\n---\nname: bob\ndescription: I'm Bob, a friendly guy.\nargs: question: The question to ask Bob.\n\n#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"\n" + }, + { + "time": "2024-08-23T12:02:25.71233-04:00", + "callContext": { + "id": "call_WxYHM2C2LYqefe0dnDZveAgk", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:25.712451-04:00", + "callContext": { + "id": "call_WxYHM2C2LYqefe0dnDZveAgk", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428954", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-05-13", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_1OSzBaMt9BrCjlaUGhIaBuGB", + "type": "function", + "function": { + "name": "read", + "arguments": "{\"filename\":\"testdata/BobAsShell/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "\ntools: bob\n\nAsk Bob \"how are you doing\" and repeat his reply exactly.\n\n---\nname: bob\ndescription: I'm Bob, a friendly guy.\nargs: question: The question to ask Bob.\n\n#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"\n", + "name": "read", + "tool_call_id": "call_1OSzBaMt9BrCjlaUGhIaBuGB" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:25.79254-04:00", + "callContext": { + "id": "call_seuQJWpcuIZGsE5ew0ulVoSm", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428950", + "usage": { + "promptTokens": 185, + "completionTokens": 21, + "totalTokens": 206 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_q1xLoCIcZFGfoYI0r4XwkV0h", + "function": { + "name": "read", + "arguments": "{\"filename\":\"testdata/SamplesReadme/test.gpt\"}" + } + } + } + ], + "usage": { + "promptTokens": 185, + "completionTokens": 21, + "totalTokens": 206 + } + } + }, + { + "time": "2024-08-23T12:02:25.792662-04:00", + "callContext": { + "id": "call_seuQJWpcuIZGsE5ew0ulVoSm", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "toolSubCalls": { + "call_q1xLoCIcZFGfoYI0r4XwkV0h": { + "toolID": "sys.read", + "input": "{\"filename\":\"testdata/SamplesReadme/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:25.792781-04:00", + "callContext": { + "id": "call_q1xLoCIcZFGfoYI0r4XwkV0h", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_seuQJWpcuIZGsE5ew0ulVoSm", + "displayText": "Reading `testdata/SamplesReadme/test.gpt`" + }, + "type": "callStart", + "usage": {}, + "content": "{\"filename\":\"testdata/SamplesReadme/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:25.792972-04:00", + "callContext": { + "id": "call_q1xLoCIcZFGfoYI0r4XwkV0h", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_seuQJWpcuIZGsE5ew0ulVoSm", + "displayText": "Reading `testdata/SamplesReadme/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428955", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T12:02:25.793171-04:00", + "callContext": { + "id": "call_q1xLoCIcZFGfoYI0r4XwkV0h", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_seuQJWpcuIZGsE5ew0ulVoSm", + "displayText": "Reading `testdata/SamplesReadme/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724428955", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:25.79325-04:00", + "callContext": { + "id": "call_q1xLoCIcZFGfoYI0r4XwkV0h", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_seuQJWpcuIZGsE5ew0ulVoSm", + "displayText": "Reading `testdata/SamplesReadme/test.gpt`" + }, + "type": "callFinish", + "usage": {}, + "content": "tools: sys.find, sys.read, summary\n\nGenerate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.\n\n---\nname: summary\ndescription: Summarize a gpt file\nargs: file: filename to summarize\ntools: sys.read\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.\n" + }, + { + "time": "2024-08-23T12:02:25.79333-04:00", + "callContext": { + "id": "call_seuQJWpcuIZGsE5ew0ulVoSm", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:25.793434-04:00", + "callContext": { + "id": "call_seuQJWpcuIZGsE5ew0ulVoSm", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428956", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-05-13", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_q1xLoCIcZFGfoYI0r4XwkV0h", + "type": "function", + "function": { + "name": "read", + "arguments": "{\"filename\":\"testdata/SamplesReadme/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "tools: sys.find, sys.read, summary\n\nGenerate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.\n\n---\nname: summary\ndescription: Summarize a gpt file\nargs: file: filename to summarize\ntools: sys.read\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.\n", + "name": "read", + "tool_call_id": "call_q1xLoCIcZFGfoYI0r4XwkV0h" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:26.508274-04:00", + "callContext": { + "id": "call_v4fxPCcLKdcJso5SK8EEvv7g", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428952", + "usage": { + "promptTokens": 276, + "completionTokens": 55, + "totalTokens": 331 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "The GPTScript file contains a script that uses a tool named \"bob\". The script demonstrates how to ask Bob a question (\"how are you doing\") and then repeat his reply exactly. The technique being demonstrated is the use of a predefined response format for a specific question." + } + ], + "usage": { + "promptTokens": 276, + "completionTokens": 55, + "totalTokens": 331 + } + } + }, + { + "time": "2024-08-23T12:02:26.508354-04:00", + "callContext": { + "id": "call_v4fxPCcLKdcJso5SK8EEvv7g", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callFinish", + "usage": {}, + "content": "The GPTScript file contains a script that uses a tool named \"bob\". The script demonstrates how to ask Bob a question (\"how are you doing\") and then repeat his reply exactly. The technique being demonstrated is the use of a predefined response format for a specific question." + }, + { + "time": "2024-08-23T12:02:26.575378-04:00", + "callContext": { + "id": "call_WxYHM2C2LYqefe0dnDZveAgk", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428954", + "usage": { + "promptTokens": 276, + "completionTokens": 56, + "totalTokens": 332 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "The GPTScript file contains a script that uses a tool named \"bob\". The script asks Bob \"how are you doing\" and repeats his reply exactly. The technique demonstrated here is how to interact with a predefined tool (Bob) by passing a question and receiving a response." + } + ], + "usage": { + "promptTokens": 276, + "completionTokens": 56, + "totalTokens": 332 + } + } + }, + { + "time": "2024-08-23T12:02:26.575465-04:00", + "callContext": { + "id": "call_WxYHM2C2LYqefe0dnDZveAgk", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callFinish", + "usage": {}, + "content": "The GPTScript file contains a script that uses a tool named \"bob\". The script asks Bob \"how are you doing\" and repeats his reply exactly. The technique demonstrated here is how to interact with a predefined tool (Bob) by passing a question and receiving a response." + }, + { + "time": "2024-08-23T12:02:27.030062-04:00", + "callContext": { + "id": "call_seuQJWpcuIZGsE5ew0ulVoSm", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callChat", + "chatCompletionId": "1724428956", + "usage": { + "promptTokens": 326, + "completionTokens": 91, + "totalTokens": 417 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "The GPTScript file contains instructions to generate a README that provides a consolidated summary of each *.gpt file in the testdata directory. Each entry in the README should include a link to the referenced file. The script uses tools such as `sys.find`, `sys.read`, and `summary` to accomplish this task. The technique demonstrated is the automation of documentation generation by summarizing the contents of multiple files and compiling them into a single README file." + } + ], + "usage": { + "promptTokens": 326, + "completionTokens": 91, + "totalTokens": 417 + } + } + }, + { + "time": "2024-08-23T12:02:27.030168-04:00", + "callContext": { + "id": "call_seuQJWpcuIZGsE5ew0ulVoSm", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428944" + }, + "type": "callFinish", + "usage": {}, + "content": "The GPTScript file contains instructions to generate a README that provides a consolidated summary of each *.gpt file in the testdata directory. Each entry in the README should include a link to the referenced file. The script uses tools such as `sys.find`, `sys.read`, and `summary` to accomplish this task. The technique demonstrated is the automation of documentation generation by summarizing the contents of multiple files and compiling them into a single README file." + }, + { + "time": "2024-08-23T12:02:27.030273-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolResults": 3, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:27.030416-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428957", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-05-13", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nGenerate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_AC0tP40eH2BNMloJag3dSw0c", + "type": "function", + "function": { + "name": "find", + "arguments": "{\"directory\":\"testdata\",\"pattern\":\"*.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "testdata/Bob/test.gpt\ntestdata/BobAsShell/test.gpt\ntestdata/SamplesReadme/test.gpt", + "name": "find", + "tool_call_id": "call_AC0tP40eH2BNMloJag3dSw0c" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_v4fxPCcLKdcJso5SK8EEvv7g", + "type": "function", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + }, + { + "id": "call_WxYHM2C2LYqefe0dnDZveAgk", + "type": "function", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + } + }, + { + "id": "call_seuQJWpcuIZGsE5ew0ulVoSm", + "type": "function", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "The GPTScript file contains a script that uses a tool named \"bob\". The script demonstrates how to ask Bob a question (\"how are you doing\") and then repeat his reply exactly. The technique being demonstrated is the use of a predefined response format for a specific question.", + "name": "summary", + "tool_call_id": "call_v4fxPCcLKdcJso5SK8EEvv7g" + }, + { + "role": "tool", + "content": "The GPTScript file contains a script that uses a tool named \"bob\". The script asks Bob \"how are you doing\" and repeats his reply exactly. The technique demonstrated here is how to interact with a predefined tool (Bob) by passing a question and receiving a response.", + "name": "summary", + "tool_call_id": "call_WxYHM2C2LYqefe0dnDZveAgk" + }, + { + "role": "tool", + "content": "The GPTScript file contains instructions to generate a README that provides a consolidated summary of each *.gpt file in the testdata directory. Each entry in the README should include a link to the referenced file. The script uses tools such as `sys.find`, `sys.read`, and `summary` to accomplish this task. The technique demonstrated is the automation of documentation generation by summarizing the contents of multiple files and compiling them into a single README file.", + "name": "summary", + "tool_call_id": "call_seuQJWpcuIZGsE5ew0ulVoSm" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "parameters": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "summary", + "description": "Summarize a gpt file", + "parameters": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:30.314337-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428957", + "usage": { + "promptTokens": 619, + "completionTokens": 270, + "totalTokens": 889 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "# Consolidated Summary of GPT Files\n\n## [testdata/Bob/test.gpt](testdata/Bob/test.gpt)\nThe GPTScript file contains a script that uses a tool named \"bob\". The script demonstrates how to ask Bob a question (\"how are you doing\") and then repeat his reply exactly. The technique being demonstrated is the use of a predefined response format for a specific question.\n\n## [testdata/BobAsShell/test.gpt](testdata/BobAsShell/test.gpt)\nThe GPTScript file contains a script that uses a tool named \"bob\". The script asks Bob \"how are you doing\" and repeats his reply exactly. The technique demonstrated here is how to interact with a predefined tool (Bob) by passing a question and receiving a response.\n\n## [testdata/SamplesReadme/test.gpt](testdata/SamplesReadme/test.gpt)\nThe GPTScript file contains instructions to generate a README that provides a consolidated summary of each *.gpt file in the testdata directory. Each entry in the README should include a link to the referenced file. The script uses tools such as `sys.find`, `sys.read`, and `summary` to accomplish this task. The technique demonstrated is the automation of documentation generation by summarizing the contents of multiple files and compiling them into a single README file." + } + ], + "usage": { + "promptTokens": 619, + "completionTokens": 270, + "totalTokens": 889 + } + } + }, + { + "time": "2024-08-23T12:02:30.314373-04:00", + "callContext": { + "id": "1724428944", + "tool": { + "modelName": "gpt-4o-2024-05-13", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callFinish", + "usage": {}, + "content": "# Consolidated Summary of GPT Files\n\n## [testdata/Bob/test.gpt](testdata/Bob/test.gpt)\nThe GPTScript file contains a script that uses a tool named \"bob\". The script demonstrates how to ask Bob a question (\"how are you doing\") and then repeat his reply exactly. The technique being demonstrated is the use of a predefined response format for a specific question.\n\n## [testdata/BobAsShell/test.gpt](testdata/BobAsShell/test.gpt)\nThe GPTScript file contains a script that uses a tool named \"bob\". The script asks Bob \"how are you doing\" and repeats his reply exactly. The technique demonstrated here is how to interact with a predefined tool (Bob) by passing a question and receiving a response.\n\n## [testdata/SamplesReadme/test.gpt](testdata/SamplesReadme/test.gpt)\nThe GPTScript file contains instructions to generate a README that provides a consolidated summary of each *.gpt file in the testdata directory. Each entry in the README should include a link to the referenced file. The script uses tools such as `sys.find`, `sys.read`, and `summary` to accomplish this task. The technique demonstrated is the automation of documentation generation by summarizing the contents of multiple files and compiling them into a single README file." + }, + { + "time": "2024-08-23T12:02:30.314408-04:00", + "type": "runFinish", + "usage": {} + } +] diff --git a/pkg/tests/smoke/testdata/SamplesReadme/gpt-4o-2024-08-06-expected.json b/pkg/tests/smoke/testdata/SamplesReadme/gpt-4o-2024-08-06-expected.json new file mode 100644 index 00000000..fcc0cf55 --- /dev/null +++ b/pkg/tests/smoke/testdata/SamplesReadme/gpt-4o-2024-08-06-expected.json @@ -0,0 +1,3152 @@ +[ + { + "time": "2024-08-23T10:47:07.984751-04:00", + "type": "runStart", + "usage": {} + }, + { + "time": "2024-08-23T10:47:07.985158-04:00", + "callContext": { + "id": "1724424428", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callStart", + "usage": {} + }, + { + "time": "2024-08-23T10:47:07.985235-04:00", + "callContext": { + "id": "1724424428", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724424429", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-08-06", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nGenerate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file." + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "parameters": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "summary", + "description": "Summarize a gpt file", + "parameters": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T10:47:08.496595-04:00", + "callContext": { + "id": "1724424428", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724424429", + "usage": { + "promptTokens": 272, + "completionTokens": 20, + "totalTokens": 292 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_GhPYkhrIge98l3U0CMJramDL", + "function": { + "name": "find", + "arguments": "{\"directory\":\"testdata\",\"pattern\":\"*.gpt\"}" + } + } + } + ], + "usage": { + "promptTokens": 272, + "completionTokens": 20, + "totalTokens": 292 + } + } + }, + { + "time": "2024-08-23T10:47:08.496757-04:00", + "callContext": { + "id": "1724424428", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolSubCalls": { + "call_GhPYkhrIge98l3U0CMJramDL": { + "toolID": "sys.find", + "input": "{\"directory\":\"testdata\",\"pattern\":\"*.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T10:47:08.496945-04:00", + "callContext": { + "id": "call_GhPYkhrIge98l3U0CMJramDL", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724424428", + "displayText": "Finding `*.gpt` in `testdata`" + }, + "type": "callStart", + "usage": {}, + "content": "{\"directory\":\"testdata\",\"pattern\":\"*.gpt\"}" + }, + { + "time": "2024-08-23T10:47:08.497205-04:00", + "callContext": { + "id": "call_GhPYkhrIge98l3U0CMJramDL", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724424428", + "displayText": "Finding `*.gpt` in `testdata`" + }, + "type": "callChat", + "chatCompletionId": "1724424430", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T10:47:08.497917-04:00", + "callContext": { + "id": "call_GhPYkhrIge98l3U0CMJramDL", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724424428", + "displayText": "Finding `*.gpt` in `testdata`" + }, + "type": "callChat", + "chatCompletionId": "1724424430", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T10:47:08.49798-04:00", + "callContext": { + "id": "call_GhPYkhrIge98l3U0CMJramDL", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724424428", + "displayText": "Finding `*.gpt` in `testdata`" + }, + "type": "callFinish", + "usage": {}, + "content": "testdata/Bob/test.gpt\ntestdata/BobAsShell/test.gpt\ntestdata/SamplesReadme/test.gpt" + }, + { + "time": "2024-08-23T10:47:08.49804-04:00", + "callContext": { + "id": "1724424428", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T10:47:08.498098-04:00", + "callContext": { + "id": "1724424428", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724424431", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-08-06", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nGenerate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_GhPYkhrIge98l3U0CMJramDL", + "type": "function", + "function": { + "name": "find", + "arguments": "{\"directory\":\"testdata\",\"pattern\":\"*.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "testdata/Bob/test.gpt\ntestdata/BobAsShell/test.gpt\ntestdata/SamplesReadme/test.gpt", + "name": "find", + "tool_call_id": "call_GhPYkhrIge98l3U0CMJramDL" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "parameters": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "summary", + "description": "Summarize a gpt file", + "parameters": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T10:47:10.013981-04:00", + "callContext": { + "id": "1724424428", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolSubCalls": { + "call_PZs7uy2Znd3GrN6MRnppZLqu": { + "toolID": "testdata/SamplesReadme/test.gpt:summary", + "input": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + }, + "call_unZV9WLReLUEuMaU2Oa6huYs": { + "toolID": "testdata/SamplesReadme/test.gpt:summary", + "input": "{\"file\": \"testdata/Bob/test.gpt\"}" + }, + "call_womMx8To9O2qyCxvcDjeNszl": { + "toolID": "testdata/SamplesReadme/test.gpt:summary", + "input": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T10:47:10.013993-04:00", + "callContext": { + "id": "1724424428", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724424431", + "usage": { + "promptTokens": 326, + "completionTokens": 77, + "totalTokens": 403 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_unZV9WLReLUEuMaU2Oa6huYs", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + } + }, + { + "toolCall": { + "index": 1, + "id": "call_PZs7uy2Znd3GrN6MRnppZLqu", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + } + } + }, + { + "toolCall": { + "index": 2, + "id": "call_womMx8To9O2qyCxvcDjeNszl", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + } + } + } + ], + "usage": { + "promptTokens": 326, + "completionTokens": 77, + "totalTokens": 403 + } + } + }, + { + "time": "2024-08-23T10:47:10.014103-04:00", + "callContext": { + "id": "call_womMx8To9O2qyCxvcDjeNszl", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callStart", + "usage": {}, + "content": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + }, + { + "time": "2024-08-23T10:47:10.014127-04:00", + "callContext": { + "id": "call_unZV9WLReLUEuMaU2Oa6huYs", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callStart", + "usage": {}, + "content": "{\"file\": \"testdata/Bob/test.gpt\"}" + }, + { + "time": "2024-08-23T10:47:10.014331-04:00", + "callContext": { + "id": "call_womMx8To9O2qyCxvcDjeNszl", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callChat", + "chatCompletionId": "1724424432", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-08-06", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T10:47:10.014405-04:00", + "callContext": { + "id": "call_unZV9WLReLUEuMaU2Oa6huYs", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callChat", + "chatCompletionId": "1724424433", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-08-06", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T10:47:10.014137-04:00", + "callContext": { + "id": "call_PZs7uy2Znd3GrN6MRnppZLqu", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callStart", + "usage": {}, + "content": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + }, + { + "time": "2024-08-23T10:47:10.01588-04:00", + "callContext": { + "id": "call_PZs7uy2Znd3GrN6MRnppZLqu", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callChat", + "chatCompletionId": "1724424434", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-08-06", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T10:47:10.509446-04:00", + "callContext": { + "id": "call_PZs7uy2Znd3GrN6MRnppZLqu", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callChat", + "chatCompletionId": "1724424434", + "usage": { + "promptTokens": 185, + "completionTokens": 21, + "totalTokens": 206 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_vD91585uJENSGhqdl2PyMg3c", + "function": { + "name": "read", + "arguments": "{\"filename\":\"testdata/BobAsShell/test.gpt\"}" + } + } + } + ], + "usage": { + "promptTokens": 185, + "completionTokens": 21, + "totalTokens": 206 + } + } + }, + { + "time": "2024-08-23T10:47:10.50956-04:00", + "callContext": { + "id": "call_PZs7uy2Znd3GrN6MRnppZLqu", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "toolSubCalls": { + "call_vD91585uJENSGhqdl2PyMg3c": { + "toolID": "sys.read", + "input": "{\"filename\":\"testdata/BobAsShell/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T10:47:10.509688-04:00", + "callContext": { + "id": "call_vD91585uJENSGhqdl2PyMg3c", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_PZs7uy2Znd3GrN6MRnppZLqu", + "displayText": "Reading `testdata/BobAsShell/test.gpt`" + }, + "type": "callStart", + "usage": {}, + "content": "{\"filename\":\"testdata/BobAsShell/test.gpt\"}" + }, + { + "time": "2024-08-23T10:47:10.509868-04:00", + "callContext": { + "id": "call_vD91585uJENSGhqdl2PyMg3c", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_PZs7uy2Znd3GrN6MRnppZLqu", + "displayText": "Reading `testdata/BobAsShell/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724424435", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T10:47:10.510139-04:00", + "callContext": { + "id": "call_vD91585uJENSGhqdl2PyMg3c", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_PZs7uy2Znd3GrN6MRnppZLqu", + "displayText": "Reading `testdata/BobAsShell/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724424435", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T10:47:10.510259-04:00", + "callContext": { + "id": "call_vD91585uJENSGhqdl2PyMg3c", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_PZs7uy2Znd3GrN6MRnppZLqu", + "displayText": "Reading `testdata/BobAsShell/test.gpt`" + }, + "type": "callFinish", + "usage": {}, + "content": "\ntools: bob\n\nAsk Bob \"how are you doing\" and repeat his reply exactly.\n\n---\nname: bob\ndescription: I'm Bob, a friendly guy.\nargs: question: The question to ask Bob.\n\n#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"\n" + }, + { + "time": "2024-08-23T10:47:10.510337-04:00", + "callContext": { + "id": "call_PZs7uy2Znd3GrN6MRnppZLqu", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T10:47:10.510438-04:00", + "callContext": { + "id": "call_PZs7uy2Znd3GrN6MRnppZLqu", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callChat", + "chatCompletionId": "1724424436", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-08-06", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_vD91585uJENSGhqdl2PyMg3c", + "type": "function", + "function": { + "name": "read", + "arguments": "{\"filename\":\"testdata/BobAsShell/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "\ntools: bob\n\nAsk Bob \"how are you doing\" and repeat his reply exactly.\n\n---\nname: bob\ndescription: I'm Bob, a friendly guy.\nargs: question: The question to ask Bob.\n\n#!/bin/bash\n\necho \"Thanks for asking ${QUESTION}, I'm doing great fellow friendly AI tool!\"\n", + "name": "read", + "tool_call_id": "call_vD91585uJENSGhqdl2PyMg3c" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T10:47:10.567024-04:00", + "callContext": { + "id": "call_womMx8To9O2qyCxvcDjeNszl", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callChat", + "chatCompletionId": "1724424432", + "usage": { + "promptTokens": 185, + "completionTokens": 21, + "totalTokens": 206 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_ACUQ0CXQLPUldRcbXbNLy8u5", + "function": { + "name": "read", + "arguments": "{\"filename\":\"testdata/SamplesReadme/test.gpt\"}" + } + } + } + ], + "usage": { + "promptTokens": 185, + "completionTokens": 21, + "totalTokens": 206 + } + } + }, + { + "time": "2024-08-23T10:47:10.567126-04:00", + "callContext": { + "id": "call_womMx8To9O2qyCxvcDjeNszl", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "toolSubCalls": { + "call_ACUQ0CXQLPUldRcbXbNLy8u5": { + "toolID": "sys.read", + "input": "{\"filename\":\"testdata/SamplesReadme/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T10:47:10.567295-04:00", + "callContext": { + "id": "call_ACUQ0CXQLPUldRcbXbNLy8u5", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_womMx8To9O2qyCxvcDjeNszl", + "displayText": "Reading `testdata/SamplesReadme/test.gpt`" + }, + "type": "callStart", + "usage": {}, + "content": "{\"filename\":\"testdata/SamplesReadme/test.gpt\"}" + }, + { + "time": "2024-08-23T10:47:10.567451-04:00", + "callContext": { + "id": "call_ACUQ0CXQLPUldRcbXbNLy8u5", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_womMx8To9O2qyCxvcDjeNszl", + "displayText": "Reading `testdata/SamplesReadme/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724424437", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T10:47:10.5676-04:00", + "callContext": { + "id": "call_ACUQ0CXQLPUldRcbXbNLy8u5", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_womMx8To9O2qyCxvcDjeNszl", + "displayText": "Reading `testdata/SamplesReadme/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724424437", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T10:47:10.56768-04:00", + "callContext": { + "id": "call_ACUQ0CXQLPUldRcbXbNLy8u5", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_womMx8To9O2qyCxvcDjeNszl", + "displayText": "Reading `testdata/SamplesReadme/test.gpt`" + }, + "type": "callFinish", + "usage": {}, + "content": "tools: sys.find, sys.read, summary\n\nGenerate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.\n\n---\nname: summary\ndescription: Summarize a gpt file\nargs: file: filename to summarize\ntools: sys.read\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.\n" + }, + { + "time": "2024-08-23T10:47:10.567751-04:00", + "callContext": { + "id": "call_womMx8To9O2qyCxvcDjeNszl", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T10:47:10.567867-04:00", + "callContext": { + "id": "call_womMx8To9O2qyCxvcDjeNszl", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callChat", + "chatCompletionId": "1724424438", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-08-06", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_ACUQ0CXQLPUldRcbXbNLy8u5", + "type": "function", + "function": { + "name": "read", + "arguments": "{\"filename\":\"testdata/SamplesReadme/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "tools: sys.find, sys.read, summary\n\nGenerate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.\n\n---\nname: summary\ndescription: Summarize a gpt file\nargs: file: filename to summarize\ntools: sys.read\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.\n", + "name": "read", + "tool_call_id": "call_ACUQ0CXQLPUldRcbXbNLy8u5" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T10:47:10.572187-04:00", + "callContext": { + "id": "call_unZV9WLReLUEuMaU2Oa6huYs", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callChat", + "chatCompletionId": "1724424433", + "usage": { + "promptTokens": 183, + "completionTokens": 19, + "totalTokens": 202 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "call_Akl3CWcIIdquIXdtWgBnnFvj", + "function": { + "name": "read", + "arguments": "{\"filename\":\"testdata/Bob/test.gpt\"}" + } + } + } + ], + "usage": { + "promptTokens": 183, + "completionTokens": 19, + "totalTokens": 202 + } + } + }, + { + "time": "2024-08-23T10:47:10.572241-04:00", + "callContext": { + "id": "call_unZV9WLReLUEuMaU2Oa6huYs", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "toolSubCalls": { + "call_Akl3CWcIIdquIXdtWgBnnFvj": { + "toolID": "sys.read", + "input": "{\"filename\":\"testdata/Bob/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T10:47:10.5723-04:00", + "callContext": { + "id": "call_Akl3CWcIIdquIXdtWgBnnFvj", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_unZV9WLReLUEuMaU2Oa6huYs", + "displayText": "Reading `testdata/Bob/test.gpt`" + }, + "type": "callStart", + "usage": {}, + "content": "{\"filename\":\"testdata/Bob/test.gpt\"}" + }, + { + "time": "2024-08-23T10:47:10.572376-04:00", + "callContext": { + "id": "call_Akl3CWcIIdquIXdtWgBnnFvj", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_unZV9WLReLUEuMaU2Oa6huYs", + "displayText": "Reading `testdata/Bob/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724424439", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T10:47:10.572495-04:00", + "callContext": { + "id": "call_Akl3CWcIIdquIXdtWgBnnFvj", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_unZV9WLReLUEuMaU2Oa6huYs", + "displayText": "Reading `testdata/Bob/test.gpt`" + }, + "type": "callChat", + "chatCompletionId": "1724424439", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T10:47:10.572537-04:00", + "callContext": { + "id": "call_Akl3CWcIIdquIXdtWgBnnFvj", + "tool": { + "name": "sys.read", + "description": "Reads the contents of a file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.read", + "id": "sys.read", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.read", + "parentID": "call_unZV9WLReLUEuMaU2Oa6huYs", + "displayText": "Reading `testdata/Bob/test.gpt`" + }, + "type": "callFinish", + "usage": {}, + "content": "tools: bob\n\nAsk Bob \"how are you doing\" and repeat his reply exactly.\n\n---\nname: bob\ndescription: I'm Bob, a friendly guy.\nargs: question: The question to ask Bob.\n\nWhen asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"\n" + }, + { + "time": "2024-08-23T10:47:10.572574-04:00", + "callContext": { + "id": "call_unZV9WLReLUEuMaU2Oa6huYs", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T10:47:10.572628-04:00", + "callContext": { + "id": "call_unZV9WLReLUEuMaU2Oa6huYs", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callChat", + "chatCompletionId": "1724424440", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-08-06", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nRead ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/Bob/test.gpt\"}" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_Akl3CWcIIdquIXdtWgBnnFvj", + "type": "function", + "function": { + "name": "read", + "arguments": "{\"filename\":\"testdata/Bob/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "tools: bob\n\nAsk Bob \"how are you doing\" and repeat his reply exactly.\n\n---\nname: bob\ndescription: I'm Bob, a friendly guy.\nargs: question: The question to ask Bob.\n\nWhen asked how I am doing, respond with exactly \"Thanks for asking \"${QUESTION}\", I'm doing great fellow friendly AI tool!\"\n", + "name": "read", + "tool_call_id": "call_Akl3CWcIIdquIXdtWgBnnFvj" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T10:47:11.316054-04:00", + "callContext": { + "id": "call_PZs7uy2Znd3GrN6MRnppZLqu", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callChat", + "chatCompletionId": "1724424436", + "usage": { + "promptTokens": 276, + "completionTokens": 57, + "totalTokens": 333 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "The GPTScript file demonstrates a technique where a tool named \"Bob\" is used to ask a question, \"how are you doing,\" and then repeat Bob's reply exactly. The script includes a bash script that outputs a predefined response from Bob, indicating that he is doing great." + } + ], + "usage": { + "promptTokens": 276, + "completionTokens": 57, + "totalTokens": 333 + } + } + }, + { + "time": "2024-08-23T10:47:11.316101-04:00", + "callContext": { + "id": "call_PZs7uy2Znd3GrN6MRnppZLqu", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callFinish", + "usage": {}, + "content": "The GPTScript file demonstrates a technique where a tool named \"Bob\" is used to ask a question, \"how are you doing,\" and then repeat Bob's reply exactly. The script includes a bash script that outputs a predefined response from Bob, indicating that he is doing great." + }, + { + "time": "2024-08-23T10:47:11.493664-04:00", + "callContext": { + "id": "call_unZV9WLReLUEuMaU2Oa6huYs", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callChat", + "chatCompletionId": "1724424440", + "usage": { + "promptTokens": 276, + "completionTokens": 57, + "totalTokens": 333 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "The GPTScript file is demonstrating a technique where a tool named \"Bob\" is used to ask a question and then repeat Bob's reply exactly. The script specifies that when Bob is asked \"how are you doing,\" he should respond with a specific phrase that includes the question asked." + } + ], + "usage": { + "promptTokens": 276, + "completionTokens": 57, + "totalTokens": 333 + } + } + }, + { + "time": "2024-08-23T10:47:11.493716-04:00", + "callContext": { + "id": "call_unZV9WLReLUEuMaU2Oa6huYs", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callFinish", + "usage": {}, + "content": "The GPTScript file is demonstrating a technique where a tool named \"Bob\" is used to ask a question and then repeat Bob's reply exactly. The script specifies that when Bob is asked \"how are you doing,\" he should respond with a specific phrase that includes the question asked." + }, + { + "time": "2024-08-23T10:47:11.694639-04:00", + "callContext": { + "id": "call_womMx8To9O2qyCxvcDjeNszl", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callChat", + "chatCompletionId": "1724424438", + "usage": { + "promptTokens": 326, + "completionTokens": 76, + "totalTokens": 402 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "The GPTScript file is designed to generate a README that provides a consolidated summary of each *.gpt file in the testdata directory. It includes a link to the referenced file. The script utilizes tools such as `sys.find`, `sys.read`, and `summary` to achieve this task. The technique demonstrated is the automation of summarizing and linking files within a directory." + } + ], + "usage": { + "promptTokens": 326, + "completionTokens": 76, + "totalTokens": 402 + } + } + }, + { + "time": "2024-08-23T10:47:11.69473-04:00", + "callContext": { + "id": "call_womMx8To9O2qyCxvcDjeNszl", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724424428" + }, + "type": "callFinish", + "usage": {}, + "content": "The GPTScript file is designed to generate a README that provides a consolidated summary of each *.gpt file in the testdata directory. It includes a link to the referenced file. The script utilizes tools such as `sys.find`, `sys.read`, and `summary` to achieve this task. The technique demonstrated is the automation of summarizing and linking files within a directory." + }, + { + "time": "2024-08-23T10:47:11.694821-04:00", + "callContext": { + "id": "1724424428", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolResults": 3, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T10:47:11.694947-04:00", + "callContext": { + "id": "1724424428", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724424441", + "usage": {}, + "chatRequest": { + "model": "gpt-4o-2024-08-06", + "messages": [ + { + "role": "system", + "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\nGenerate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_GhPYkhrIge98l3U0CMJramDL", + "type": "function", + "function": { + "name": "find", + "arguments": "{\"directory\":\"testdata\",\"pattern\":\"*.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "testdata/Bob/test.gpt\ntestdata/BobAsShell/test.gpt\ntestdata/SamplesReadme/test.gpt", + "name": "find", + "tool_call_id": "call_GhPYkhrIge98l3U0CMJramDL" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_unZV9WLReLUEuMaU2Oa6huYs", + "type": "function", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + }, + { + "id": "call_PZs7uy2Znd3GrN6MRnppZLqu", + "type": "function", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/BobAsShell/test.gpt\"}" + } + }, + { + "id": "call_womMx8To9O2qyCxvcDjeNszl", + "type": "function", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/SamplesReadme/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "The GPTScript file is demonstrating a technique where a tool named \"Bob\" is used to ask a question and then repeat Bob's reply exactly. The script specifies that when Bob is asked \"how are you doing,\" he should respond with a specific phrase that includes the question asked.", + "name": "summary", + "tool_call_id": "call_unZV9WLReLUEuMaU2Oa6huYs" + }, + { + "role": "tool", + "content": "The GPTScript file demonstrates a technique where a tool named \"Bob\" is used to ask a question, \"how are you doing,\" and then repeat Bob's reply exactly. The script includes a bash script that outputs a predefined response from Bob, indicating that he is doing great.", + "name": "summary", + "tool_call_id": "call_PZs7uy2Znd3GrN6MRnppZLqu" + }, + { + "role": "tool", + "content": "The GPTScript file is designed to generate a README that provides a consolidated summary of each *.gpt file in the testdata directory. It includes a link to the referenced file. The script utilizes tools such as `sys.find`, `sys.read`, and `summary` to achieve this task. The technique demonstrated is the automation of summarizing and linking files within a directory.", + "name": "summary", + "tool_call_id": "call_womMx8To9O2qyCxvcDjeNszl" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "parameters": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "summary", + "description": "Summarize a gpt file", + "parameters": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T10:47:14.617019-04:00", + "callContext": { + "id": "1724424428", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724424441", + "usage": { + "promptTokens": 604, + "completionTokens": 254, + "totalTokens": 858 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "# GPT Files Summary\n\n## [testdata/Bob/test.gpt](testdata/Bob/test.gpt)\nThe GPTScript file demonstrates a technique where a tool named \"Bob\" is used to ask a question and then repeat Bob's reply exactly. The script specifies that when Bob is asked \"how are you doing,\" he should respond with a specific phrase that includes the question asked.\n\n## [testdata/BobAsShell/test.gpt](testdata/BobAsShell/test.gpt)\nThe GPTScript file demonstrates a technique where a tool named \"Bob\" is used to ask a question, \"how are you doing,\" and then repeat Bob's reply exactly. The script includes a bash script that outputs a predefined response from Bob, indicating that he is doing great.\n\n## [testdata/SamplesReadme/test.gpt](testdata/SamplesReadme/test.gpt)\nThe GPTScript file is designed to generate a README that provides a consolidated summary of each *.gpt file in the testdata directory. It includes a link to the referenced file. The script utilizes tools such as `sys.find`, `sys.read`, and `summary` to achieve this task. The technique demonstrated is the automation of summarizing and linking files within a directory." + } + ], + "usage": { + "promptTokens": 604, + "completionTokens": 254, + "totalTokens": 858 + } + } + }, + { + "time": "2024-08-23T10:47:14.617097-04:00", + "callContext": { + "id": "1724424428", + "tool": { + "modelName": "gpt-4o-2024-08-06", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callFinish", + "usage": {}, + "content": "# GPT Files Summary\n\n## [testdata/Bob/test.gpt](testdata/Bob/test.gpt)\nThe GPTScript file demonstrates a technique where a tool named \"Bob\" is used to ask a question and then repeat Bob's reply exactly. The script specifies that when Bob is asked \"how are you doing,\" he should respond with a specific phrase that includes the question asked.\n\n## [testdata/BobAsShell/test.gpt](testdata/BobAsShell/test.gpt)\nThe GPTScript file demonstrates a technique where a tool named \"Bob\" is used to ask a question, \"how are you doing,\" and then repeat Bob's reply exactly. The script includes a bash script that outputs a predefined response from Bob, indicating that he is doing great.\n\n## [testdata/SamplesReadme/test.gpt](testdata/SamplesReadme/test.gpt)\nThe GPTScript file is designed to generate a README that provides a consolidated summary of each *.gpt file in the testdata directory. It includes a link to the referenced file. The script utilizes tools such as `sys.find`, `sys.read`, and `summary` to achieve this task. The technique demonstrated is the automation of summarizing and linking files within a directory." + }, + { + "time": "2024-08-23T10:47:14.617199-04:00", + "type": "runFinish", + "usage": {} + } +] diff --git a/pkg/tests/smoke/testdata/SamplesReadme/mistral-large-2402-expected.json b/pkg/tests/smoke/testdata/SamplesReadme/mistral-large-2402-expected.json new file mode 100644 index 00000000..bb02f7c9 --- /dev/null +++ b/pkg/tests/smoke/testdata/SamplesReadme/mistral-large-2402-expected.json @@ -0,0 +1,1455 @@ +[ + { + "time": "2024-08-23T12:02:12.663843-04:00", + "type": "runStart", + "usage": {} + }, + { + "time": "2024-08-23T12:02:12.664126-04:00", + "callContext": { + "id": "1724428933", + "tool": { + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callStart", + "usage": {} + }, + { + "time": "2024-08-23T12:02:13.179975-04:00", + "type": "runStart", + "usage": {} + }, + { + "time": "2024-08-23T12:02:13.180053-04:00", + "callContext": { + "id": "1724428934", + "tool": { + "name": "Mistral La Plateforme Provider", + "description": "Model provider for Mistral models running on La Plateforme", + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "modelProvider": true, + "internalPrompt": null, + "credentials": [ + "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env" + ], + "instructions": "#!sys.daemon /usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/main.py", + "id": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt:Mistral La Plateforme Provider", + "toolMapping": { + "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env": [ + { + "reference": "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env", + "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/37e5f870e195b896438c0bc35867403a42f82e89/tool.gpt:token" + } + ] + }, + "localTools": { + "mistral la plateforme provider": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt:Mistral La Plateforme Provider" + }, + "source": { + "location": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt", + "lineNo": 1, + "repo": { + "VCS": "git", + "Root": "https://github.com/gptscript-ai/mistral-laplateforme-provider.git", + "Path": "/", + "Name": "tool.gpt", + "Revision": "aa4353e7d1de7e90e1078bfbc88526266e587a64" + } + }, + "workingDir": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64" + }, + "currentAgent": {}, + "inputContext": null, + "toolCategory": "provider", + "displayText": "Running sys.daemon" + }, + "type": "callStart", + "usage": {} + }, + { + "time": "2024-08-23T12:02:14.191214-04:00", + "callContext": { + "id": "1724428934", + "tool": { + "name": "Mistral La Plateforme Provider", + "description": "Model provider for Mistral models running on La Plateforme", + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "modelProvider": true, + "internalPrompt": null, + "credentials": [ + "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env" + ], + "instructions": "#!sys.daemon /usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/main.py", + "id": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt:Mistral La Plateforme Provider", + "toolMapping": { + "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env": [ + { + "reference": "github.com/gptscript-ai/credential as github.com/gptscript-ai/mistral-laplateforme-provider/credential with \"Please enter your Mistral La Plateforme API Key\" as message and token as field and \"MISTRAL_API_KEY\" as env", + "toolID": "https://raw.githubusercontent.com/gptscript-ai/credential/37e5f870e195b896438c0bc35867403a42f82e89/tool.gpt:token" + } + ] + }, + "localTools": { + "mistral la plateforme provider": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt:Mistral La Plateforme Provider" + }, + "source": { + "location": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64/tool.gpt", + "lineNo": 1, + "repo": { + "VCS": "git", + "Root": "https://github.com/gptscript-ai/mistral-laplateforme-provider.git", + "Path": "/", + "Name": "tool.gpt", + "Revision": "aa4353e7d1de7e90e1078bfbc88526266e587a64" + } + }, + "workingDir": "https://raw.githubusercontent.com/gptscript-ai/mistral-laplateforme-provider/aa4353e7d1de7e90e1078bfbc88526266e587a64" + }, + "currentAgent": {}, + "inputContext": null, + "toolCategory": "provider", + "displayText": "Running sys.daemon" + }, + "type": "callFinish", + "usage": {}, + "content": "http://127.0.0.1:10834" + }, + { + "time": "2024-08-23T12:02:14.191336-04:00", + "type": "runFinish", + "usage": {} + }, + { + "time": "2024-08-23T12:02:14.191414-04:00", + "callContext": { + "id": "1724428933", + "tool": { + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428935", + "usage": {}, + "chatRequest": { + "model": "mistral-large-2402", + "messages": [ + { + "role": "system", + "content": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file." + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "parameters": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "summary", + "description": "Summarize a gpt file", + "parameters": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:15.753724-04:00", + "callContext": { + "id": "1724428933", + "tool": { + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428935", + "usage": { + "promptTokens": 404, + "completionTokens": 28, + "totalTokens": 432 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "NHz8UTYnn", + "function": { + "name": "find", + "arguments": "{\"directory\": \"testdata\", \"pattern\": \"*.gpt\"}" + } + } + } + ], + "usage": { + "promptTokens": 404, + "completionTokens": 28, + "totalTokens": 432 + } + } + }, + { + "time": "2024-08-23T12:02:15.753873-04:00", + "callContext": { + "id": "1724428933", + "tool": { + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolSubCalls": { + "NHz8UTYnn": { + "toolID": "sys.find", + "input": "{\"directory\": \"testdata\", \"pattern\": \"*.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:15.753944-04:00", + "callContext": { + "id": "NHz8UTYnn", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724428933", + "displayText": "Finding `*.gpt` in `testdata`" + }, + "type": "callStart", + "usage": {}, + "content": "{\"directory\": \"testdata\", \"pattern\": \"*.gpt\"}" + }, + { + "time": "2024-08-23T12:02:15.75564-04:00", + "callContext": { + "id": "NHz8UTYnn", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724428933", + "displayText": "Finding `*.gpt` in `testdata`" + }, + "type": "callChat", + "chatCompletionId": "1724428936", + "usage": {}, + "chatRequest": { + "model": "", + "messages": null + } + }, + { + "time": "2024-08-23T12:02:15.7563-04:00", + "callContext": { + "id": "NHz8UTYnn", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724428933", + "displayText": "Finding `*.gpt` in `testdata`" + }, + "type": "callChat", + "chatCompletionId": "1724428936", + "usage": {}, + "chatResponse": { + "usage": {} + } + }, + { + "time": "2024-08-23T12:02:15.756369-04:00", + "callContext": { + "id": "NHz8UTYnn", + "tool": { + "name": "sys.find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + }, + "instructions": "#!sys.find", + "id": "sys.find", + "source": {} + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "sys.find", + "parentID": "1724428933", + "displayText": "Finding `*.gpt` in `testdata`" + }, + "type": "callFinish", + "usage": {}, + "content": "testdata/Bob/test.gpt\ntestdata/BobAsShell/test.gpt\ntestdata/SamplesReadme/test.gpt" + }, + { + "time": "2024-08-23T12:02:15.756408-04:00", + "callContext": { + "id": "1724428933", + "tool": { + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:16.041065-04:00", + "callContext": { + "id": "1724428933", + "tool": { + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428937", + "usage": {}, + "chatRequest": { + "model": "mistral-large-2402", + "messages": [ + { + "role": "system", + "content": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "NHz8UTYnn", + "type": "function", + "function": { + "name": "find", + "arguments": "{\"directory\": \"testdata\", \"pattern\": \"*.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "testdata/Bob/test.gpt\ntestdata/BobAsShell/test.gpt\ntestdata/SamplesReadme/test.gpt", + "name": "find", + "tool_call_id": "NHz8UTYnn" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "parameters": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "summary", + "description": "Summarize a gpt file", + "parameters": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:19.335498-04:00", + "callContext": { + "id": "1724428933", + "tool": { + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428937", + "usage": { + "promptTokens": 486, + "completionTokens": 28, + "totalTokens": 514 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "toolCall": { + "index": 0, + "id": "H4wTu9hi1", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + } + } + ], + "usage": { + "promptTokens": 486, + "completionTokens": 28, + "totalTokens": 514 + } + } + }, + { + "time": "2024-08-23T12:02:19.335519-04:00", + "callContext": { + "id": "1724428933", + "tool": { + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolSubCalls": { + "H4wTu9hi1": { + "toolID": "testdata/SamplesReadme/test.gpt:summary", + "input": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + }, + "type": "callSubCalls", + "usage": {} + }, + { + "time": "2024-08-23T12:02:19.335613-04:00", + "callContext": { + "id": "H4wTu9hi1", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428933" + }, + "type": "callStart", + "usage": {}, + "content": "{\"file\": \"testdata/Bob/test.gpt\"}" + }, + { + "time": "2024-08-23T12:02:19.665733-04:00", + "callContext": { + "id": "H4wTu9hi1", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428933" + }, + "type": "callChat", + "chatCompletionId": "1724428938", + "usage": {}, + "chatRequest": { + "model": "mistral-large-2402", + "messages": [ + { + "role": "system", + "content": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate." + }, + { + "role": "user", + "content": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:22.344057-04:00", + "callContext": { + "id": "H4wTu9hi1", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428933" + }, + "type": "callChat", + "chatCompletionId": "1724428938", + "usage": { + "promptTokens": 236, + "completionTokens": 96, + "totalTokens": 332 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "The file \"test.gpt\" contains a GPTScript that demonstrates the use of a decision tree technique for AI automation. The script starts with a greeting and then asks the user about their preference between two options. Based on the user's response, the script navigates through different branches of the decision tree, providing relevant responses and asking further questions to gather more information. The script ends by providing a personalized recommendation based on the user's inputs." + } + ], + "usage": { + "promptTokens": 236, + "completionTokens": 96, + "totalTokens": 332 + } + } + }, + { + "time": "2024-08-23T12:02:22.344127-04:00", + "callContext": { + "id": "H4wTu9hi1", + "tool": { + "name": "summary", + "description": "Summarize a gpt file", + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "arguments": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + }, + "tools": [ + "sys.read" + ], + "instructions": "Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language.\nBriefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.", + "id": "testdata/SamplesReadme/test.gpt:summary", + "toolMapping": { + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 7 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null, + "toolName": "summary", + "parentID": "1724428933" + }, + "type": "callFinish", + "usage": {}, + "content": "The file \"test.gpt\" contains a GPTScript that demonstrates the use of a decision tree technique for AI automation. The script starts with a greeting and then asks the user about their preference between two options. Based on the user's response, the script navigates through different branches of the decision tree, providing relevant responses and asking further questions to gather more information. The script ends by providing a personalized recommendation based on the user's inputs." + }, + { + "time": "2024-08-23T12:02:22.344175-04:00", + "callContext": { + "id": "1724428933", + "tool": { + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "toolResults": 1, + "type": "callContinue", + "usage": {} + }, + { + "time": "2024-08-23T12:02:22.708297-04:00", + "callContext": { + "id": "1724428933", + "tool": { + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428939", + "usage": {}, + "chatRequest": { + "model": "mistral-large-2402", + "messages": [ + { + "role": "system", + "content": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file." + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "NHz8UTYnn", + "type": "function", + "function": { + "name": "find", + "arguments": "{\"directory\": \"testdata\", \"pattern\": \"*.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "testdata/Bob/test.gpt\ntestdata/BobAsShell/test.gpt\ntestdata/SamplesReadme/test.gpt", + "name": "find", + "tool_call_id": "NHz8UTYnn" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "H4wTu9hi1", + "type": "function", + "function": { + "name": "summary", + "arguments": "{\"file\": \"testdata/Bob/test.gpt\"}" + } + } + ] + }, + { + "role": "tool", + "content": "The file \"test.gpt\" contains a GPTScript that demonstrates the use of a decision tree technique for AI automation. The script starts with a greeting and then asks the user about their preference between two options. Based on the user's response, the script navigates through different branches of the decision tree, providing relevant responses and asking further questions to gather more information. The script ends by providing a personalized recommendation based on the user's inputs.", + "name": "summary", + "tool_call_id": "H4wTu9hi1" + } + ], + "temperature": 0, + "tools": [ + { + "type": "function", + "function": { + "name": "find", + "description": "Traverse a directory looking for files that match a pattern in the style of the unix find command", + "parameters": { + "properties": { + "directory": { + "description": "The directory to search in. The current directory \".\" will be used as the default if no argument is passed", + "type": "string" + }, + "pattern": { + "description": "The file pattern to look for. The pattern is a traditional unix glob format with * matching any character and ? matching a single character", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "read", + "description": "Reads the contents of a file", + "parameters": { + "properties": { + "filename": { + "description": "The name of the file to read", + "type": "string" + } + }, + "type": "object" + } + } + }, + { + "type": "function", + "function": { + "name": "summary", + "description": "Summarize a gpt file", + "parameters": { + "properties": { + "file": { + "description": "filename to summarize", + "type": "string" + } + }, + "type": "object" + } + } + } + ] + } + }, + { + "time": "2024-08-23T12:02:27.495193-04:00", + "callContext": { + "id": "1724428933", + "tool": { + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callChat", + "chatCompletionId": "1724428939", + "usage": { + "promptTokens": 625, + "completionTokens": 160, + "totalTokens": 785 + }, + "chatResponse": { + "role": "assistant", + "content": [ + { + "text": "# Testdata Summary\n\n## [testdata/Bob/test.gpt](testdata/Bob/test.gpt)\nThe file \"test.gpt\" contains a GPTScript that demonstrates the use of a decision tree technique for AI automation. The script starts with a greeting and then asks the user about their preference between two options. Based on the user's response, the script navigates through different branches of the decision tree, providing relevant responses and asking further questions to gather more information. The script ends by providing a personalized recommendation based on the user's inputs.\n\nPlease wait while I process the remaining files.\n\n[Continue processing the remaining files using the \"summary\" function and update the README accordingly.]" + } + ], + "usage": { + "promptTokens": 625, + "completionTokens": 160, + "totalTokens": 785 + } + } + }, + { + "time": "2024-08-23T12:02:27.495233-04:00", + "callContext": { + "id": "1724428933", + "tool": { + "modelName": "mistral-large-2402 from github.com/gptscript-ai/mistral-laplateforme-provider", + "internalPrompt": null, + "tools": [ + "sys.find", + "sys.read", + "summary" + ], + "instructions": "Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory.\nEach entry should be a include a link to the referenced file.", + "id": "testdata/SamplesReadme/test.gpt:", + "toolMapping": { + "summary": [ + { + "reference": "summary", + "toolID": "testdata/SamplesReadme/test.gpt:summary" + } + ], + "sys.find": [ + { + "reference": "sys.find", + "toolID": "sys.find" + } + ], + "sys.read": [ + { + "reference": "sys.read", + "toolID": "sys.read" + } + ] + }, + "localTools": { + "": "testdata/SamplesReadme/test.gpt:", + "summary": "testdata/SamplesReadme/test.gpt:summary" + }, + "source": { + "location": "testdata/SamplesReadme/test.gpt", + "lineNo": 1 + }, + "workingDir": "testdata/SamplesReadme" + }, + "currentAgent": {}, + "inputContext": null + }, + "type": "callFinish", + "usage": {}, + "content": "# Testdata Summary\n\n## [testdata/Bob/test.gpt](testdata/Bob/test.gpt)\nThe file \"test.gpt\" contains a GPTScript that demonstrates the use of a decision tree technique for AI automation. The script starts with a greeting and then asks the user about their preference between two options. Based on the user's response, the script navigates through different branches of the decision tree, providing relevant responses and asking further questions to gather more information. The script ends by providing a personalized recommendation based on the user's inputs.\n\nPlease wait while I process the remaining files.\n\n[Continue processing the remaining files using the \"summary\" function and update the README accordingly.]" + }, + { + "time": "2024-08-23T12:02:27.495269-04:00", + "type": "runFinish", + "usage": {} + } +] diff --git a/pkg/tests/smoke/testdata/SamplesReadme/test.gpt b/pkg/tests/smoke/testdata/SamplesReadme/test.gpt new file mode 100644 index 00000000..93afdcf9 --- /dev/null +++ b/pkg/tests/smoke/testdata/SamplesReadme/test.gpt @@ -0,0 +1,13 @@ +tools: sys.find, sys.read, summary + +Generate a readme that gives a consolidated summary of each *.gpt file in the testdata directory. +Each entry should be a include a link to the referenced file. + +--- +name: summary +description: Summarize a gpt file +args: file: filename to summarize +tools: sys.read + +Read ${file} which is a sample GPTScript file. GPT script is an AI automation scripting language. +Briefly describe the contents of the GPTScript file and what technique the file is trying to demonstrate.