Skip to content

SystemPrompt

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.v2.base
A v2 object with the ``_meta`` extension point.

⋔ Inheritance diagram

graph TD
  95970867662144["sessions.SystemPrompt"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970867662144
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Client-provided system-level instructions for a session.

Only sent when the agent advertises session.systemPrompt; agents that cannot apply it return an error instead of creating the session.

Source code in src/aclientp/schema/v2/sessions.py
class SystemPrompt(AnnotatedObject):
    """Client-provided system-level instructions for a session.

    Only sent when the agent advertises ``session.systemPrompt``; agents that cannot apply
    it return an error instead of creating the session.
    """

    mode: SystemPromptMode
    """How the Agent combines ``content`` with its own instructions."""

    content: Sequence[ContentBlock] = Field(min_length=1)
    """The system prompt content; at least one block."""

content class-attribute instance-attribute

content: Sequence[ContentBlock] = Field(min_length=1)

The system prompt content; at least one block.

mode instance-attribute

How the Agent combines content with its own instructions.

:fa-brands-github: Show source on GitHub