Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/__tests__/agent-server-contract-types.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { MCPClient } from '../client/mcp-client';
import type { CreateConversationPayload } from '../client/conversation-client';
import type { SettingsClient } from '../client/settings-client';
import type {
McpConfigPatchWritable,
Expand Down Expand Up @@ -50,6 +51,10 @@ function assertType<Type extends true>(_value: Type): void {
}

describe('Agent Server generated contract aliases', () => {
it('types the optional custom title-generation prompt', () => {
assertType<Equal<CreateConversationPayload['prompt'], string | undefined>>(true);
});

it('statically checks settings client request and response types', () => {
assertType<
Equal<Awaited<ReturnType<SettingsClient['getAgentSchema']>>, AgentServerSettingsSchema>
Expand Down
2 changes: 2 additions & 0 deletions src/client/conversation-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export interface CreateConversationPayload {
agent_profile_id?: string;
agent?: unknown;
agent_settings?: unknown;
/** Optional prompt override used for automatic conversation titles. */
prompt?: string;
[key: string]: unknown;
}

Expand Down
Loading