Skip to content

Commit ed46f91

Browse files
committed
Fix doc knit
1 parent 96f3897 commit ed46f91

File tree

2 files changed

+55
-5
lines changed

2 files changed

+55
-5
lines changed

docs/docs/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ object AnalyzeTool : Tool<AnalyzeTool.Args, AnalyzeTool.Result>() {
509509
)
510510
511511
override val argsSerializer: KSerializer<Args> = Args.serializer()
512-
override val resultSerializer: KSerializer<String> = Result.serializer()
512+
override val resultSerializer: KSerializer<Result> = Result.serializer()
513513
514514
override val name = "message"
515515
override val toolDescription = "Service tool, used by the agent to talk with user"

examples/notebooks/Banking.ipynb

Lines changed: 54 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -888,8 +888,9 @@
888888
},
889889
{
890890
"metadata": {
891-
"jupyter": {
892-
"is_executing": true
891+
"ExecuteTime": {
892+
"end_time": "2025-09-15T23:25:17.920950Z",
893+
"start_time": "2025-09-15T23:25:17.423461Z"
893894
}
894895
},
895896
"cell_type": "code",
@@ -924,8 +925,57 @@
924925
" systemPrompt = \"$bankingAssistantSystemPrompt\\n$transactionAnalysisPrompt\"\n",
925926
")"
926927
],
927-
"outputs": [],
928-
"execution_count": null
928+
"outputs": [
929+
{
930+
"ename": "org.jetbrains.kotlinx.jupyter.exceptions.ReplCompilerException",
931+
"evalue": "at Cell In[1], line 5, column 23: Unresolved reference: AIAgent\nat Cell In[1], line 6, column 16: Unresolved reference: openAIExecutor\nat Cell In[1], line 7, column 16: Unresolved reference: OpenAIModels\nat Cell In[1], line 8, column 20: Unresolved reference: ToolRegistry\nat Cell In[1], line 9, column 9: Unresolved reference: tool\nat Cell In[1], line 9, column 14: Unresolved reference: AskUser\nat Cell In[1], line 12, column 9: Unresolved reference: tool\nat Cell In[1], line 13, column 13: Unresolved reference: transferAgent\nat Cell In[1], line 20, column 9: Unresolved reference: tool\nat Cell In[1], line 21, column 13: Unresolved reference: analysisAgent\nat Cell In[1], line 28, column 22: Unresolved reference: bankingAssistantSystemPrompt\nat Cell In[1], line 28, column 53: Unresolved reference: transactionAnalysisPrompt",
932+
"output_type": "error",
933+
"traceback": [
934+
"org.jetbrains.kotlinx.jupyter.exceptions.ReplCompilerException: at Cell In[1], line 5, column 23: Unresolved reference: AIAgent",
935+
"at Cell In[1], line 6, column 16: Unresolved reference: openAIExecutor",
936+
"at Cell In[1], line 7, column 16: Unresolved reference: OpenAIModels",
937+
"at Cell In[1], line 8, column 20: Unresolved reference: ToolRegistry",
938+
"at Cell In[1], line 9, column 9: Unresolved reference: tool",
939+
"at Cell In[1], line 9, column 14: Unresolved reference: AskUser",
940+
"at Cell In[1], line 12, column 9: Unresolved reference: tool",
941+
"at Cell In[1], line 13, column 13: Unresolved reference: transferAgent",
942+
"at Cell In[1], line 20, column 9: Unresolved reference: tool",
943+
"at Cell In[1], line 21, column 13: Unresolved reference: analysisAgent",
944+
"at Cell In[1], line 28, column 22: Unresolved reference: bankingAssistantSystemPrompt",
945+
"at Cell In[1], line 28, column 53: Unresolved reference: transactionAnalysisPrompt",
946+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.JupyterCompilerImpl.compileSync(JupyterCompilerImpl.kt:152)",
947+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.InternalEvaluatorImpl.eval(InternalEvaluatorImpl.kt:127)",
948+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.CellExecutorImpl.execute_L4Nmkdk$lambda$9$lambda$1(CellExecutorImpl.kt:80)",
949+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.withHost(ReplForJupyterImpl.kt:794)",
950+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.CellExecutorImpl.execute-L4Nmkdk(CellExecutorImpl.kt:78)",
951+
"\tat org.jetbrains.kotlinx.jupyter.repl.execution.CellExecutor.execute-L4Nmkdk$default(CellExecutor.kt:14)",
952+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.evaluateUserCode-wNURfNM(ReplForJupyterImpl.kt:616)",
953+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.evalExImpl(ReplForJupyterImpl.kt:474)",
954+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.evalEx$lambda$20(ReplForJupyterImpl.kt:467)",
955+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.withEvalContext(ReplForJupyterImpl.kt:447)",
956+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.evalEx(ReplForJupyterImpl.kt:466)",
957+
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.processExecuteRequest$lambda$7$lambda$6$lambda$5(IdeCompatibleMessageRequestProcessor.kt:160)",
958+
"\tat org.jetbrains.kotlinx.jupyter.streams.BlockingSubstitutionEngine.withDataSubstitution(SubstitutionEngine.kt:70)",
959+
"\tat org.jetbrains.kotlinx.jupyter.streams.StreamSubstitutionManager.withSubstitutedStreams(StreamSubstitutionManager.kt:118)",
960+
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.withForkedIn(IdeCompatibleMessageRequestProcessor.kt:354)",
961+
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.evalWithIO$lambda$16$lambda$15(IdeCompatibleMessageRequestProcessor.kt:368)",
962+
"\tat org.jetbrains.kotlinx.jupyter.streams.BlockingSubstitutionEngine.withDataSubstitution(SubstitutionEngine.kt:70)",
963+
"\tat org.jetbrains.kotlinx.jupyter.streams.StreamSubstitutionManager.withSubstitutedStreams(StreamSubstitutionManager.kt:118)",
964+
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.withForkedErr(IdeCompatibleMessageRequestProcessor.kt:343)",
965+
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.evalWithIO$lambda$16(IdeCompatibleMessageRequestProcessor.kt:367)",
966+
"\tat org.jetbrains.kotlinx.jupyter.streams.BlockingSubstitutionEngine.withDataSubstitution(SubstitutionEngine.kt:70)",
967+
"\tat org.jetbrains.kotlinx.jupyter.streams.StreamSubstitutionManager.withSubstitutedStreams(StreamSubstitutionManager.kt:118)",
968+
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.withForkedOut(IdeCompatibleMessageRequestProcessor.kt:335)",
969+
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.evalWithIO(IdeCompatibleMessageRequestProcessor.kt:366)",
970+
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.processExecuteRequest$lambda$7$lambda$6(IdeCompatibleMessageRequestProcessor.kt:159)",
971+
"\tat org.jetbrains.kotlinx.jupyter.execution.JupyterExecutorImpl$Task.execute(JupyterExecutorImpl.kt:41)",
972+
"\tat org.jetbrains.kotlinx.jupyter.execution.JupyterExecutorImpl.executorThread$lambda$0(JupyterExecutorImpl.kt:83)",
973+
"\tat kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)",
974+
""
975+
]
976+
}
977+
],
978+
"execution_count": 1
929979
},
930980
{
931981
"metadata": {},

0 commit comments

Comments
 (0)