/**
 * Identity helper that infers the narrowest possible type for an agent config,
 * preserving string literal types (including `name`) without requiring `as const`.
 *
 * Use this when you need `typeof myAgent` to carry the literal `name` type —
 * for example, when wiring `ChatToolHandlers<typeof myAgent>`.
 *
 * ```ts
 * const myAgent = defineAgent({ name: 'my_agent', ... });
 * type Handlers = ChatToolHandlers<typeof myAgent>;
 * // requestSubAgent name param is now typed as 'my_agent'
 * ```
 *
 * @beta
 */
export function defineAgent(config) {
    return config;
}
