Skip to content

Examples with multiple calls to agent.run( ... ) can't possibly work #960

@marcdownie

Description

@marcdownie

For example, this:

inside a while(true) seems to inevitably end up throwing:

Exception in thread "main" java.lang.IllegalStateException: Agent was already started
	at ai.koog.agents.core.agent.StatefulSingleUseAIAgent.run(StatefulSingleUseAIAgent.kt:103)

on the second call to agent.run. I guess they need to be updated to AIAgentService ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions