Q173: agents work in the company's or task's language, not the display language
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
538d834647
commit
3f14e3f706
36 files changed
+268
-105
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import type { ApprovalState, IdentitySource, PrincipalType, RiskLevel, RoleKey, TaskPriority, TaskStatus, UiLanguage, UiTheme, WritingMode } from "../domain";
|
||||
import type { ApprovalState, IdentitySource, PrincipalType, RiskLevel, RoleKey, TaskPriority, TaskStatus, UiLanguage, UiTheme, WorkLanguage, WritingMode } from "../domain";
|
||||
|
||||
export interface SetActiveOrganizationInput {
|
||||
orgId: string;
|
||||
@@ -92,6 +92,8 @@ export interface CreateTaskInput {
|
||||
requiresFilesystem: boolean;
|
||||
/** Defaults to conversational. */
|
||||
writingMode?: WritingMode;
|
||||
/** Null or omitted follows the company's working language. */
|
||||
workLanguage?: WorkLanguage | null;
|
||||
/** Provenance: 'chat_wake' for mention-wake vehicles, 'goal_review' for CEO goal checkpoints, 'task_review' for a manager's review of work, omitted for plain work. */
|
||||
origin?: "chat_wake" | "goal_review" | "task_review";
|
||||
}
|
||||
@@ -121,6 +123,7 @@ export interface UpdateTaskInput {
|
||||
workspaceId: string | null;
|
||||
requiresFilesystem: boolean;
|
||||
writingMode: WritingMode;
|
||||
workLanguage: WorkLanguage | null;
|
||||
}
|
||||
|
||||
export interface SetTaskBlockedInput {
|
||||
@@ -154,6 +157,7 @@ export interface UpdateOrganizationInput {
|
||||
executionMode: "ai_ceo" | "ai_cofounder";
|
||||
autoApproveHires: boolean;
|
||||
reviewDeliverables: boolean;
|
||||
workLanguage: WorkLanguage;
|
||||
}
|
||||
|
||||
export interface SetGoalDueDateInput {
|
||||
|
||||
@@ -27,6 +27,8 @@ export interface ResolveAgentSkillsInput {
|
||||
runModel: { providerKey: string; model: string | null };
|
||||
/** False on technical and structured tasks, which skip the house-style skill. */
|
||||
houseStyle: boolean;
|
||||
/** Picks the house-style variant: the task's working language. */
|
||||
language: "en" | "zh";
|
||||
}
|
||||
|
||||
export interface RunSkillTestsInput {
|
||||
|
||||
@@ -33,6 +33,9 @@ export type ProviderAuthType = ValueOf<typeof PROVIDER_AUTH_TYPE>;
|
||||
export type SocialPlatform = ValueOf<typeof SOCIAL_PLATFORM>;
|
||||
export type FileScanState = ValueOf<typeof FILE_SCAN_STATE>;
|
||||
|
||||
/** The language agents write in; separate from the app's display language. */
|
||||
export type WorkLanguage = "en" | "zh";
|
||||
|
||||
export interface OrganizationRecord {
|
||||
id: string;
|
||||
name: string;
|
||||
@@ -45,6 +48,8 @@ export interface OrganizationRecord {
|
||||
/** The provider and model that audit goal completion, never the executor's own; null until the board sets them. */
|
||||
auditProviderId: string | null;
|
||||
auditModelId: string | null;
|
||||
/** The language its agents work in unless a task sets its own. */
|
||||
workLanguage: WorkLanguage;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
@@ -134,6 +139,8 @@ export interface TaskRecord {
|
||||
parentTaskId: string | null;
|
||||
requiresFilesystem: boolean;
|
||||
writingMode: WritingMode;
|
||||
/** Overrides the company's working language for this task; null follows the company. */
|
||||
workLanguage: WorkLanguage | null;
|
||||
/** Set when the task spent its run budget without reaching done. */
|
||||
stalledReason: string | null;
|
||||
/** Why the heartbeat last failed to queue the task; cleared once it queues. */
|
||||
|
||||
Reference in new issue
Block a user