MCPcopy
hub / github.com/stitionai/devika / emit_agent

Function emit_agent

src/socket_instance.py:9–17  ·  view source on GitHub ↗
(channel, content, log=True)

Source from the content-addressed store, hash-verified

7
8
9def emit_agent(channel, content, log=True):
10 try:
11 socketio.emit(channel, content)
12 if log:
13 logger.info(f"SOCKET {channel} MESSAGE: {content}")
14 return True
15 except Exception as e:
16 logger.error(f"SOCKET {channel} ERROR: {str(e)}")
17 return False

Callers 15

test_connectFunction · 0.90
handle_messageFunction · 0.90
create_stateMethod · 0.90
add_to_current_stateMethod · 0.90
update_latest_stateMethod · 0.90
set_agent_activeMethod · 0.90
set_agent_completedMethod · 0.90
add_message_from_userMethod · 0.90
inferenceMethod · 0.90
wrapperFunction · 0.90

Calls 2

infoMethod · 0.80
errorMethod · 0.80

Tested by 1

test_connectFunction · 0.72