Skip to content

Questions about message mechanism #2654

@PanQiWei

Description

@PanQiWei

Question

Hi, team! First of all, thanks a lot for you guys bring us this great framework!

However, I have some questions about the message mechanism under the hood that I couldn't find answers in the documentation:

  • can we customize the name of each message manually? if so, how; otherwise, why?
  • is the agent's system prompt will not prepend to the final messages if we manually specify message_history
  • is there any best practice recommend to persist messages to storage or exchange messages among pydantic-ai agents?

It would be very helpful if any one can help me deeply understand the message design mechanism and philosophy, thanks again!! ❤️

Additional Context

No response

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions