open_agent_spec: "1.5.0"

agent:
  name: summariser
  description: >
    Summarise a body of text and extract the most important points.
    A general-purpose summarisation specialist designed to be reused
    via spec delegation (spec: oa://prime-vector/summariser).
  role: analyst

intelligence:
  type: llm
  engine: openai
  model: gpt-4o-mini
  config:
    temperature: 0.2

tasks:
  summarise:
    description: Summarise text and extract key points
    input:
      type: object
      properties:
        text:
          type: string
          description: The text to summarise
      required:
        - text
    output:
      type: object
      properties:
        summary:
          type: string
          description: A concise summary of the text (one to three sentences)
        key_points:
          type: array
          items:
            type: string
          description: Up to five key points extracted from the text
      required:
        - summary
        - key_points
    prompts:
      system: >
        You are a concise technical writer. Summarise clearly and extract the
        most important points. Always respond with valid JSON.
      user: |
        Summarise the following text and extract the key points.

        Text:
        {text}

        Respond with JSON:
        {
          "summary": "<one to three sentences>",
          "key_points": ["point 1", "point 2", ...]
        }
