MCPcopy Index your code
hub / github.com/docker/docker-agent / emitEvent

Method emitEvent

cmd/wasm/runtime_wasm.go:770–772  ·  view source on GitHub ↗

emitEvent sends a typed event to the JS onEvent callback.

(event map[string]any)

Source from the content-addressed store, hash-verified

768
769// emitEvent sends a typed event to the JS onEvent callback.
770func (rt *wasmRuntime) emitEvent(event map[string]any) {
771 emit(rt.onEvent, event)
772}
773
774// lastAssistantContent returns the content of the last assistant message.
775func (rt *wasmRuntime) lastAssistantContent(messages []chat.Message) string {

Callers 4

runAgentLoopMethod · 0.95
streamWithFallbackMethod · 0.95
streamCompletionMethod · 0.95
processToolCallsMethod · 0.95

Calls 1

emitFunction · 0.85

Tested by

no test coverage detected