INNER CODE UNIT · Python

post

ohdearquant/lionagi · lionagi/cli/main.py:389

            head, post = tail[:i], tail[i + 1 :]
        else:
            head, post = tail, []
        args, extras = agent_parser.parse_known_args(head)
        unknown = [e for e in extras if e.startswith("-") and e != "-"]
        if unknown:
            agent_parser.error(f"unrecognized arguments: {' '.join(unknown)}")
        args.query = [*(args.query or []), *extras, *post]
        return build.registration.handler(args)

    # `li o flow` / `li o fanout` parse standalone for the same reason as
    # `agent` above (nested subparser dispatch can't intermix flags with
    # the [MODEL] PROMPT positionals). See docs/internals/cli.md.
    if (
        _argv
        and selected is not None
        and selected.name == "orchestrate"
        and len(_argv) > 1

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…