@@ -279,13 +279,21 @@ def document_full_schema(
279
279
trace : bool = False ,
280
280
client : Optional [mlflow .MlflowClient ] = None ,
281
281
expirement_name : Optional [str ] = None ,
282
- api_key : Optional [str ] = None ,
282
+ logging_id : Optional [str ] = None ,
283
283
) -> dspy .Prediction :
284
284
"""Given a database schema, parse out the underlying components and document on
285
285
a per-component basis.
286
286
287
287
:param database_schema: The database schema to generate documentation for.
288
288
:type database_schema: str
289
+ :param trace: Whether to trace the generation.
290
+ :type trace: bool
291
+ :param client: The mlflow client.
292
+ :type client: mlflow.MlflowClient
293
+ :param expirement_name: The name of the experiment.
294
+ :type expirement_name: str
295
+ :param logging_id: The id to use for logging. Maps back to the user request.
296
+ :type logging_id: str
289
297
:return: The generated documentation.
290
298
:rtype: dspy.Prediction
291
299
@@ -296,8 +304,8 @@ def document_full_schema(
296
304
raise ValueError ("client must be provided if trace is True" )
297
305
if expirement_name is None :
298
306
raise ValueError ("expirement_name must be provided if trace is True" )
299
- if api_key is None :
300
- raise ValueError ("api_key must be provided if trace is True" )
307
+ if logging_id is None :
308
+ raise ValueError ("logging_id must be provided if trace is True" )
301
309
302
310
# check that the graphql is valid
303
311
try :
@@ -323,7 +331,7 @@ def document_full_schema(
323
331
# TODO: we should have better type handling, but we check at the top
324
332
trace_name = "document_full_schema" ,
325
333
inputs = {"database_schema" : database_schema },
326
- attributes = {"api_key " : api_key },
334
+ attributes = {"logging_id " : logging_id },
327
335
)
328
336
log .info ("created trace: " + str (root_trace ))
329
337
0 commit comments