dspy.ChatAdapter
dspy.ChatAdapter(callbacks=None)
Bases: Adapter
dspy.ChatAdapter(callbacks=None)
Bases: Adapter
dspy/adapters/base.py
format(signature: Signature, demos: list[dict[str, Any]], inputs: dict[str, Any]) -> list[dict[str, Any]]
dspy/adapters/chat_adapter.py
format_fields(signature, values, role)
dspy/adapters/chat_adapter.py
format_finetune_data(signature, demos, inputs, outputs)
dspy/adapters/chat_adapter.py
format_turn(signature, values, role, incomplete=False)
parse(signature, completion)
dspy/adapters/chat_adapter.py