run
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| Agent llmling_agent.agent.agent The main agent class. |
||
| ImageURLContent llmling_agent.models.content Image from URL. |
🛈 DocStrings¶
Functional wrappers for Agent usage.
run_agent
async
¶
run_agent(
prompt: PromptCompatible,
image_url: str | None = None,
*,
output_type: type[TResult],
**kwargs: Unpack[AgentKwargs]
) -> TResult
run_agent(
prompt: PromptCompatible, image_url: str | None = None, **kwargs: Unpack[AgentKwargs]
) -> str
run_agent(
prompt: PromptCompatible,
image_url: str | None = None,
*,
output_type: type[Any] | None = None,
**kwargs: Unpack[AgentKwargs]
) -> Any
Run prompt through agent and return result.
Source code in src/llmling_agent/functional/run.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |
run_agent_sync
¶
run_agent_sync(
prompt: PromptCompatible,
image_url: str | None = None,
*,
output_type: type[TResult],
**kwargs: Unpack[AgentKwargs]
) -> TResult
run_agent_sync(
prompt: PromptCompatible, image_url: str | None = None, **kwargs: Unpack[AgentKwargs]
) -> str
run_agent_sync(
prompt: PromptCompatible,
image_url: str | None = None,
*,
output_type: type[Any] | None = None,
**kwargs: Unpack[AgentKwargs]
) -> Any
Sync wrapper for run_agent.
Source code in src/llmling_agent/functional/run.py
70 71 72 73 74 75 76 77 78 79 | |