Transformation Type | Target Types | Functionality |
---|---|---|
remove_system_messages | Array[Message] | Filters a list of messages to remove any system messages. |
convert_to_openai_message | Message Array[Message] | Converts any incoming data from LangChain’s internal serialization format to OpenAI’s standard message format using langchain’s convert_to_openai_messages. If the target field is marked as required, and no matching message is found upon entry, it will attempt to extract a message (or list of messages) from several well-known LangSmith tracing formats (e.g., any traced LangChain BaseChatModel run or traced run from the LangSmith OpenAI wrapper), and remove the original key containing the message. |
convert_to_openai_tool | Array[Tool] Only available on top level fields in the inputs dictionary. | Converts any incoming data into OpenAI standard tool formats here using langchain’s convert_to_openai_tool Will extract tool definitions from a run’s invocation parameters if present / no tools are found at the specified key. This is useful because LangChain chat models trace tool definitions to the extra.invocation_params field of the run rather than inputs. |
remove_extra_fields | Object | Removes any field not defined in the schema for this target object. |