registry
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| ConnectionRegistry llmling_agent.talk.registry Registry for managing named connections. |
||
| ConnectionRegistryError llmling_agent.talk.registry Errors related to connection registration. |
||
| EventContext llmling_agent.talk.registry Base context for all condition/event operations. |
||
| Talk llmling_agent.talk.talk Manages message flow between agents/groups. |
||
| TriggerContext llmling_agent.talk.registry Context for trigger events, extending base context with event information. |
🛈 DocStrings¶
Manages message flow between agents/groups.
ConnectionRegistry
¶
Bases: BaseRegistry[str, Talk]
Registry for managing named connections.
Allows looking up Talk instances by their name. Only named connections get registered.
Source code in src/llmling_agent/talk/registry.py
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 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 | |
__init__
¶
__init__(*args, **kwargs)
Initialize registry and connect event handlers.
Source code in src/llmling_agent/talk/registry.py
69 70 71 72 73 74 75 | |
register_auto
¶
Register talk with auto-generated unique name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
talk
|
Talk[Any]
|
Talk instance to register |
required |
base_name
|
str | None
|
Optional base name to use (defaults to talk.name) |
None
|
Returns:
| Type | Description |
|---|---|
str
|
The actual name used for registration |
Source code in src/llmling_agent/talk/registry.py
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | |
ConnectionRegistryError
¶
Bases: LLMLingError
Errors related to connection registration.
Source code in src/llmling_agent/talk/registry.py
25 26 | |
EventContext
dataclass
¶
Base context for all condition/event operations.
Source code in src/llmling_agent/talk/registry.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
registry
instance-attribute
¶
registry: ConnectionRegistry | None
Registry of all named connections.
TriggerContext
dataclass
¶
Bases: EventContext[TMessageContent]
Context for trigger events, extending base context with event information.
Source code in src/llmling_agent/talk/registry.py
49 50 51 52 53 54 55 56 57 | |