node_logger
Class info¶
Classes¶
Name | Children | Inherits |
---|---|---|
ChatMessageContainer llmling_agent.messaging.message_container Container for tracking and managing chat messages. |
||
NodeLogger llmling_agent.messaging.node_logger Handles database logging for node interactions. |
||
ToolCallInfo llmling_agent.models.tools Information about an executed tool call. |
🛈 DocStrings¶
Logging functionality for node interactions.
NodeLogger
¶
Handles database logging for node interactions.
Source code in src/llmling_agent/messaging/node_logger.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
|
__init__
¶
__init__(node: MessageEmitter[Any, Any], enable_db_logging: bool = True)
Initialize logger.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
node
|
MessageEmitter[Any, Any]
|
Node to log interactions for |
required |
enable_db_logging
|
bool
|
Whether to enable logging |
True
|
Source code in src/llmling_agent/messaging/node_logger.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
clear_state
¶
clear_state()
Clear node state.
Source code in src/llmling_agent/messaging/node_logger.py
47 48 49 50 |
|
init_conversation
¶
init_conversation()
Create initial conversation record.
Source code in src/llmling_agent/messaging/node_logger.py
62 63 64 65 66 67 |
|
log_message
¶
log_message(message: ChatMessage)
Handle message from chat signal.
Source code in src/llmling_agent/messaging/node_logger.py
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
|
log_tool_call
¶
log_tool_call(tool_call: ToolCallInfo)
Handle tool usage signal.
Source code in src/llmling_agent/messaging/node_logger.py
86 87 88 89 90 91 92 93 94 95 96 |
|