Extract and summarise bounds are each agent's own limits, set on its form
agents.limits holds extract_top, extract_min, summarise_top and summarise_min; the scope query reads them per ranked row, and a row saved before this behaves like a fresh agent. The four global config keys go. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
e602eb3388
commit
cebe62ddc9
20 files changed
+229
-147
No files matched your search
+8
-17
@@ -22,7 +22,7 @@ from typing import Any, Literal
|
||||
import yaml
|
||||
from pydantic import Field, ValidationError, model_validator
|
||||
|
||||
from app.models import Gate, Weights
|
||||
from app.models import Gate, Limits, Weights
|
||||
from auth import AuthConfig
|
||||
from desk.config import AgentConfig, ModelTaskConfig, Section, WorkersConfig
|
||||
|
||||
@@ -43,37 +43,27 @@ class ExtractConfig(ModelTaskConfig):
|
||||
"""Turning a posting's title and text into the gate columns. See
|
||||
app/jobs/extract.py. Off by default, so nobody is billed by surprise:
|
||||
on the API backend every batch is a paid call. On, it reads only the
|
||||
best `per_agent` roles of each enabled agent that score at least
|
||||
`min_score`, so the cost follows the ranking rather than the boards."""
|
||||
best roles of each enabled agent, as deep and as low as that agent's
|
||||
own `limits` say, so the cost follows the ranking rather than the
|
||||
boards."""
|
||||
|
||||
enabled: bool = False
|
||||
model: str = "claude-haiku-4-5-20251001"
|
||||
batch_size: int = Field(20, ge=1)
|
||||
#: How deep into each enabled agent's ranking extract reads: the backstop.
|
||||
per_agent: int = Field(500, ge=0)
|
||||
#: Below this score a role is not read, however few are above it. Loose,
|
||||
#: since a fresh role with the worst fit scores about 0.27 on the default
|
||||
#: weights and a good one 0.6 or more.
|
||||
min_score: float = Field(0.3, ge=0, le=1)
|
||||
|
||||
|
||||
class SummariseConfig(ModelTaskConfig):
|
||||
"""About 60 words on a role, for the list and the read page. See
|
||||
app/jobs/summarise.py. Off by default like extract; on, a pull summarises
|
||||
only the best `per_agent` of each enabled agent, so the cost is bounded
|
||||
whatever the backlog. The read page's Summarise button asks for one role
|
||||
whether this is on or not."""
|
||||
only the best of each enabled agent, as deep and as low as that agent's
|
||||
own `limits` say, so the cost is bounded whatever the backlog. The read
|
||||
page's Summarise button asks for one role whether this is on or not."""
|
||||
|
||||
enabled: bool = False
|
||||
model: str = "claude-haiku-4-5-20251001"
|
||||
#: A description is capped at 8000 characters per role, so ten is about
|
||||
#: 20k tokens of input per call.
|
||||
batch_size: int = Field(10, ge=1)
|
||||
#: How deep into each enabled agent's ranking a pull summarises.
|
||||
per_agent: int = Field(30, ge=0)
|
||||
#: Below this score a role is not summarised. Stricter than extract's,
|
||||
#: since a summary is the expensive answer.
|
||||
min_score: float = Field(0.5, ge=0, le=1)
|
||||
|
||||
|
||||
class EmbedConfig(Section):
|
||||
@@ -96,6 +86,7 @@ class AgentSeed(Section):
|
||||
intent: str = ""
|
||||
gates: list[Gate] = Field(default_factory=list)
|
||||
weights: Weights = Field(default_factory=Weights)
|
||||
limits: Limits = Field(default_factory=Limits)
|
||||
enabled: bool = True
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user