Skip to content

SystemPrompt

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.base
Base class for generated models.

⋔ Inheritance diagram

graph TD
  95970862209104["client_requests.SystemPrompt"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970862209104
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Client-provided system-level instructions for a session.

Only allowed if the Agent advertises session_capabilities.system_prompt.

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

    Only allowed if the Agent advertises ``session_capabilities.system_prompt``.
    """

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

    content: Sequence[ContentBlock]
    """The system prompt content."""

content instance-attribute

content: Sequence[ContentBlock]

The system prompt content.

mode instance-attribute

How the Agent combines content with its own instructions.

:fa-brands-github: Show source on GitHub