File tree Expand file tree Collapse file tree 5 files changed +24
-3
lines changed
typescript/packages/lookslike-prototype/src Expand file tree Collapse file tree 5 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -267,6 +267,24 @@ export class ComApp extends LitElement {
267267 in : { } ,
268268 outputType : {
269269 type : 'object' ,
270+ "properties" : {
271+ "results" : {
272+ "type" : "object" ,
273+ "properties" : {
274+ "albummatches" : {
275+ "type" : "object" ,
276+ "properties" : {
277+ "albums" : {
278+ "type" : "array" ,
279+ "items" : {
280+ "type" : "object"
281+ }
282+ }
283+ }
284+ }
285+ }
286+ }
287+ }
270288 } ,
271289 body : `https://ws.audioscrobbler.com/2.0/?method=album.search&album=${ query } &api_key=${ lastFmKey } &format=json`
272290 } )
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ export class ComThread extends LitElement {
9898 this . requestUpdate ( )
9999 } )
100100 } ) ;
101+
101102 this . lastGraph = this . graph
102103 }
103104
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const code = (src: string) => `
4545
4646 console.log('[begin]');
4747 const fn = function() { ${ src } };
48- const result = await fn();
48+ const result = fn();
4949 write('__result__', { tag: 'string', val: JSON.stringify(result) });
5050 console.log('[end]');
5151 }
Original file line number Diff line number Diff line change @@ -87,7 +87,10 @@ const toolSpec: ChatCompletionTool[] = [
8787 "type" : "function" ,
8888 "function" : {
8989 "name" : "addMusicSearchNode" ,
90- "description" : `Adds a new fetch node to the graph to search last.fm.` ,
90+ "description" : `Adds a new fetch node to the graph to search last.fm.
91+
92+ Results are stored in result.albumsmatches.album
93+ ` ,
9194 "parameters" : {
9295 "type" : "object" ,
9396 "properties" : {
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ export function createElement(node, context) {
2727 // repeat node
2828 if ( ! node . tag && node . type == 'repeat' ) {
2929 const container = document . createElement ( 'div' ) ;
30- debugger
3130 const items = readValue ( context , node . binding ) || [ ] ;
3231 items . forEach ( item => {
3332 container . appendChild ( createElement ( node . template , item ) ) ;
You can’t perform that action at this time.
0 commit comments