Skip to content

Issue with documentation #54

@plafleur

Description

@plafleur

This page: https://github.com/gleanwork/api-client-python/blob/main/docs/sdks/agents/README.md lists the parameters for agent runs as:

Parameters

Parameter Type Required Description
agent_id str ✔️ The ID of the agent to run.
input Dict[str, Any] The input to the agent.
messages List[models.Message] The messages to pass an input to the agent.
metadata Dict[str, Any] The metadata to pass to the agent.
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Attempting to use input leads to:

TypeError: Agents.run() got an unexpected keyword argument 'input'. Did you mean 'input_'?

Modifying the parameter to input_ works, which lines up with what is actually in the code:

input_: Optional[Dict[str, Any]] = None,

Metadata

Metadata

Assignees

No one assigned

    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