LangEx.MessagesState (LangEx v0.11.3)

Copy Markdown View Source

Pre-built state schema with a messages key using the add_messages reducer.

Example

Graph.new(LangEx.MessagesState.schema(intent: nil, response: nil))

Summary

Functions

Returns a schema keyword list with messages and any extra keys.

Functions

schema(extra \\ [])

@spec schema(keyword()) :: keyword()

Returns a schema keyword list with messages and any extra keys.