File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 11: host {
22 dis play: grid;
3+ grid- template-rows: auto 1fr auto ;
34 width: 100%;
45 height: 100%;
56 overflow: hidden;
Original file line number Diff line number Diff line change 11< h2 > Ollama Tool Calling</ h2 >
2- < div class ="container "> </ div >
2+
3+ < monaco-editor id ="tooling " language ="json ">
4+ [
5+ {
6+ "type": "function",
7+ "function": {
8+ "name": "age",
9+ "description": "Return the age of a person",
10+ "parameters": {
11+ "type": "object",
12+ "properties": {
13+ "personAge": {
14+ "type": "integer",
15+ "description": "The age of the person"
16+ }
17+ },
18+ "required": ["personAge"]
19+ }
20+ }
21+ }
22+ ]
23+ </ monaco-editor >
24+
25+
326< button data-action ="callFunction "> Call Function</ button >
Original file line number Diff line number Diff line change 11import { OllamaModule , ChatRoles } from "./../../src/modules/ollama.js" ;
2+ import "./../../components/monaco-editor/monaco-editor.js" ;
23
34const tools = [
45 {
You can’t perform that action at this time.
0 commit comments