Expand description
Helper functions for managing the Agent Chain API.
This module is only relevant for Agent Chain developers, not for users.
Warning: This module and its submodules are for internal use only. Do not use them in your own code. We may change the API at any time with no warning.
Structs§
- Agent
Chain Beta Warning - A warning type for beta features in Agent Chain.
- Agent
Chain Deprecation Warning - A warning type for deprecated features in Agent Chain.
- Agent
Chain Pending Deprecation Warning - A warning type for pending deprecations in Agent Chain.
- Beta
Params - Parameters for configuring beta warnings.
- Deprecation
Params - Parameters for configuring deprecation warnings.
- Rename
Parameter Params - Parameters for renaming a deprecated parameter.
- Suppress
Beta Warnings - Guard that suppresses beta warnings while it exists.
- Suppress
Deprecation Warnings - Guard that suppresses deprecation warnings while it exists.
Functions§
- as_
import_ path - Convert a file path to an import path (module path format).
- get_
relative_ path - Get the path of the file as a relative path to a base directory.
- handle_
renamed_ parameter - Check if an old parameter name was used and emit a deprecation warning.
- is_
caller_ internal - Checks if the caller module is internal to agent-chain.
- suppress_
beta_ warnings - Suppress beta warnings within a scope.
- suppress_
deprecation_ warnings - Suppress deprecation warnings within a scope.
- surface_
beta_ warnings - Enable beta warnings (unmute them).
- surface_
deprecation_ warnings - Enable deprecation warnings (unmute them).
- warn_
beta - Display a standardized beta warning.
- warn_
deprecated - Display a standardized deprecation warning.