nodes
Class info¶
Classes¶
Name | Children | Inherits |
---|---|---|
EventNodeConfig llmling_agent.models.nodes Base configuration for event nodes. |
||
InputProvider llmling_agent_input.base Base class for handling all UI interactions. |
||
MCPServerBase llmling_agent.models.mcp_server Base model for MCP server configuration. |
||
NodeConfig llmling_agent.models.nodes Configuration for a Node of the messaging system. |
||
StdioMCPServer llmling_agent.models.mcp_server MCP server started via stdio. |
🛈 DocStrings¶
Team configuration models.
EventNodeConfig
¶
Bases: NodeConfig
Base configuration for event nodes.
All event node configurations must: 1. Specify their type for discrimination 2. Implement get_event() to create their event instance
Source code in src/llmling_agent/models/nodes.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
|
enabled
class-attribute
instance-attribute
¶
enabled: bool = True
Whether this event source is active.
include_metadata
class-attribute
instance-attribute
¶
include_metadata: bool = True
Control metadata visibility in template.
include_timestamp
class-attribute
instance-attribute
¶
include_timestamp: bool = True
Control timestamp visibility in template.
template
class-attribute
instance-attribute
¶
template: str = DEFAULT_TEMPLATE
Jinja2 template for formatting events.
type
class-attribute
instance-attribute
¶
type: str = Field('event', init=False)
Discriminator field for event configs.
get_event
abstractmethod
¶
Create event instance from this configuration.
This method should: 1. Create the event instance 2. Wrap any functions if needed 3. Return the configured event
Source code in src/llmling_agent/models/nodes.py
114 115 116 117 118 119 120 121 122 123 |
|
get_event_node
¶
Create event node from config.
Source code in src/llmling_agent/models/nodes.py
125 126 127 128 129 130 131 132 133 134 135 |
|
NodeConfig
¶
Bases: BaseModel
Configuration for a Node of the messaging system.
Source code in src/llmling_agent/models/nodes.py
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 |
|
connections
class-attribute
instance-attribute
¶
Targets to forward results to.
description
class-attribute
instance-attribute
¶
description: str | None = None
Optional description of the agent / team.
input_provider
class-attribute
instance-attribute
¶
input_provider: ImportString[InputProvider] | None = None
Provider for human-input-handling.
mcp_servers
class-attribute
instance-attribute
¶
List of MCP server configurations: - str entries are converted to StdioMCPServer - MCPServerConfig for full server configuration
triggers
class-attribute
instance-attribute
¶
Event sources that activate this agent / team
get_mcp_servers
¶
get_mcp_servers() -> list[MCPServerConfig]
Get processed MCP server configurations.
Converts string entries to StdioMCPServer configs by splitting into command and arguments.
Returns:
Type | Description |
---|---|
list[MCPServerConfig]
|
List of MCPServerConfig instances |
Raises:
Type | Description |
---|---|
ValueError
|
If string entry is empty |
Source code in src/llmling_agent/models/nodes.py
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 |
|