@@ -60,6 +60,7 @@ def __init__(self,
60
60
credentials : list [str ] = None ,
61
61
instructions : str = "" ,
62
62
type : str = "" ,
63
+ metaData : dict [str , str ] = None ,
63
64
):
64
65
self .name = name
65
66
self .description = description
@@ -85,6 +86,7 @@ def __init__(self,
85
86
self .credentials = credentials
86
87
self .instructions = instructions
87
88
self .type = type
89
+ self .metaData = metaData
88
90
89
91
def to_json (self ) -> dict [str , Any ]:
90
92
out = self .__dict__
@@ -164,15 +166,15 @@ def __init__(self,
164
166
credentials : list [str ] = None ,
165
167
instructions : str = "" ,
166
168
type : str = "" ,
167
- toolMapping : dict [str , list [ToolReference ]] = None ,
168
169
metaData : dict [str , str ] = None ,
170
+ toolMapping : dict [str , list [ToolReference ]] = None ,
169
171
localTools : dict [str , str ] = None ,
170
172
source : SourceRef = None ,
171
173
workingDir : str = "" ,
172
174
):
173
175
super ().__init__ (name , description , maxTokens , modelName , modelProvider , jsonResponse , temperature , cache , chat ,
174
176
internalPrompt , arguments , tools , globalTools , globalModelName , context , exportContext , export ,
175
- agents , credentials , instructions , type )
177
+ agents , credentials , instructions , type , metaData )
176
178
177
179
self .id = id
178
180
self .toolMapping = toolMapping
@@ -183,7 +185,6 @@ def __init__(self,
183
185
if isinstance (self .toolMapping [tool ][i ], dict ):
184
186
self .toolMapping [tool ][i ] = ToolReference (** self .toolMapping [tool ][i ])
185
187
self .localTools = localTools
186
- self .metaData = metaData
187
188
self .source = source
188
189
if self .source is not None and isinstance (self .source , dict ):
189
190
self .source = SourceRef (** self .source )
0 commit comments