Skip to content

Allow proper types for agent props #1886

Closed

Description

@stof

Describe the bug
The generic types for Agent enforces Record<string, unknown> as bound for Props. This Record type requires subtypes to define an index signature for type string, which prevents using interfaces with well-defined properties.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
While the type could still default to Record<string, unknown>, it should allow using proper interfaces that have no index signature.

Screenshots

This is the error reported by Typescript on a getAgentsByName call passing { props: config } as third argument:

Image

Version:
0.17.3

Additional context

Activity

  1. mattzcarey commented on Jul 7, 2026

    @mattzcarey
    Member

    @agent-think repro this pls

  2. added a commit that references this issue on Sep 14, 2026
    498b860
  3. added a commit that references this issue on Sep 28, 2026
    cc6894b
  4. added a commit that references this issue on Sep 28, 2026
    c3a4010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions