Language model to add agent name formatting to
How to expose the agent name to the LLM
migrated to langchain
package.
NOTE: agent name is consumed from the message.name field. If you're using an agent built with createReactAgent, name is automatically set. If you're building a custom agent, make sure to set the name on the AI message returned by the LLM.
Attach formatted agent names to the messages passed to and from a language model.
This is useful for making a message history with multiple agents more coherent.