@@ -962,6 +962,7 @@ def instrument_pydantic_ai(
962962 / ,
963963 * ,
964964 event_mode : Literal ['attributes' , 'logs' ] = 'attributes' ,
965+ ** kwargs : Any ,
965966 ) -> None : ...
966967
967968 @overload
@@ -971,6 +972,7 @@ def instrument_pydantic_ai(
971972 / ,
972973 * ,
973974 event_mode : Literal ['attributes' , 'logs' ] = 'attributes' ,
975+ ** kwargs : Any ,
974976 ) -> pydantic_ai .models .Model : ...
975977
976978 def instrument_pydantic_ai (
@@ -979,6 +981,7 @@ def instrument_pydantic_ai(
979981 / ,
980982 * ,
981983 event_mode : Literal ['attributes' , 'logs' ] | None = None ,
984+ ** kwargs : Any ,
982985 ) -> pydantic_ai .models .Model | None :
983986 """Instrument PydanticAI.
984987
@@ -989,6 +992,9 @@ def instrument_pydantic_ai(
989992 If you pass a model, a new instrumented model will be returned.
990993 event_mode: See the [PydanticAI docs](https://ai.pydantic.dev/logfire/#data-format).
991994 The default is whatever the default is in your version of PydanticAI.
995+ kwargs: Additional keyword arguments to pass to
996+ [`InstrumentationSettings`](https://ai.pydantic.dev/api/models/instrumented/#pydantic_ai.models.instrumented.InstrumentationSettings)
997+ for future compatibility.
992998 """
993999 from .integrations .pydantic_ai import instrument_pydantic_ai
9941000
@@ -997,6 +1003,7 @@ def instrument_pydantic_ai(
9971003 self ,
9981004 obj = obj ,
9991005 event_mode = event_mode ,
1006+ ** kwargs ,
10001007 )
10011008
10021009 def instrument_fastapi (
0 commit comments