MCPcopy
hub / github.com/simstudioai/sim / runExamples

Function runExamples

packages/ts-sdk/examples/basic-usage.ts:143–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141// Run examples
142if (require.main === module) {
143 async function runExamples() {
144 console.log('🚀 Running Sim SDK Examples\n')
145
146 try {
147 await basicExample()
148 console.log('\n✅ Basic example completed')
149
150 await withInputExample()
151 console.log('\n✅ Input example completed')
152
153 await statusExample()
154 console.log('\n✅ Status example completed')
155
156 await streamingExample()
157 console.log('\n✅ Streaming example completed')
158 } catch (error) {
159 console.error('Error running examples:', error)
160 }
161 }
162
163 runExamples()
164}

Callers 1

basic-usage.tsFile · 0.85

Calls 6

basicExampleFunction · 0.85
withInputExampleFunction · 0.85
statusExampleFunction · 0.85
streamingExampleFunction · 0.85
logMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected