OpenAI 《A practical guide to building agents》reasoning and decision-making 02 Tools External functions or APIs the agent can use to take action 03 Instructions Explicit guidelines and guardrails defining how the agent behaves Here’s what this looks like library or building directly from scratch. Python 1 2 3 4 5 6 weather_agent = Agent( name= instructions= tools=[get_weather], ) , "Weather agent" "You are a helpful agent who can talk to users output, : datetime.time()}) return "File saved" search_agent = Agent( name= , instructions= tools=[WebSearchTool(),save_results], ) "output" "timestamp" "Search agent" "Help the user0 码力 | 34 页 | 7.00 MB | 6 月前3
Just-in-Time Compilation - J F Bastien - CppCon 2020elsewhere. This simple ATOM program instruments all of an (already compiled) program’s load and store instructions, adding a call to a function before each. Therefore, ATOM disassembles a program, instruments memory), or simulate details such as non-architectural state (shadow registers, etc), timing of instructions, caches, memory, etc. This is very slow to interpret. Embra is the first machine simulator to from original source to IR. Also, some IRs have easier to analyze structure Such as: * “Which instructions use this result?” * “What is the control flow that leads here?”— 2006 Design of the Java HotSpot0 码力 | 111 页 | 3.98 MB | 6 月前3
Hidden Overhead of a Function APIreliable on modern CPUs. ● We’ll use simple examples, so that we can just compare the number of instructions generated by a compiler. 13“… machine code … can range from 10s to 100s of megabytes in size sum_12_3 9 instructions 7 instructions 9 instructions sum_13_2 10 instructions 8 instructions 10 instructions sum_23_1 11 instructions 9 instructions 12 instructions sum_21_3 12 instructions 10 instructions instructions 12 instructions 130sum_12_3 sum_13_2 push rbx mov ebx, edx call sum(int, int) mov esi, ebx pop rbx mov edi, eax jmp sum(int, int) push rbx mov ebx, esi mov esi, edx call sum(int0 码力 | 158 页 | 2.46 MB | 6 月前3
Google 《Prompt Engineering v7》Practices 54 Provide examples 54 Design with simplicity 55 Be specific about the output 56 Use Instructions over Constraints 56 Control the max token length 58 Use variables in prompts 58 Experiment optimal balance between determinism and randomness. Prompting techniques LLMs are tuned to follow instructions and are trained on large amounts of data so they can understand a prompt and generate an answer the LLM to get started with. This input could be anything: a question, a start of a story, or instructions. The name zero-shot stands for ’no examples’. Prompt Engineering February 2025 14 Let’s use Vertex0 码力 | 68 页 | 6.50 MB | 6 月前3
Conda 24.5.x DocumentationChapter 4. Contributors welcome conda, Release 24.5.1.dev1 Regular installation Follow the instructions for your operating system: • Windows • macOS • Linux Installing in silent mode You can use for deployment or testing or building services, such as GitHub Actions. Follow the silent-mode instructions for your operating system: • Windows • macOS • Linux Cryptographic hash verification SHA-256 installer for Windows 2. Verify your installer hashes. 3. Double-click the .exe file. 4. Follow the instructions on the screen. If you are unsure about any setting, accept the defaults. You can change them0 码力 | 794 页 | 5.01 MB | 8 月前3
Conda 25.1.x Documentationg. /Users/my-username/conda or C:\Users\my-username\conda). Regular installation Follow the instructions for your operating system: • Windows • macOS • Linux Installing in silent mode You can use for deployment or testing or building services, such as GitHub Actions. Follow the silent-mode instructions for your operating system: • Windows • macOS • Linux 4.1. User guide 13 conda, Release 25 installer for Windows 2. Verify your installer hashes. 3. Double-click the .exe file. 4. Follow the instructions on the screen. If you are unsure about any setting, accept the defaults. You can change them0 码力 | 822 页 | 5.20 MB | 8 月前3
Conda 24.11.x Documentationg. /Users/my-username/conda or C:\Users\my-username\conda). Regular installation Follow the instructions for your operating system: • Windows • macOS • Linux Installing in silent mode You can use for deployment or testing or building services, such as GitHub Actions. Follow the silent-mode instructions for your operating system: • Windows • macOS • Linux 4.1. User guide 13 conda, Release 24 installer for Windows 2. Verify your installer hashes. 3. Double-click the .exe file. 4. Follow the instructions on the screen. If you are unsure about any setting, accept the defaults. You can change them0 码力 | 818 页 | 5.21 MB | 8 月前3
Conda 24.9.x Documentationg. /Users/my-username/conda or C:\Users\my-username\conda). Regular installation Follow the instructions for your operating system: • Windows • macOS • Linux Installing in silent mode You can use for deployment or testing or building services, such as GitHub Actions. Follow the silent-mode instructions for your operating system: • Windows • macOS • Linux 4.1. User guide 13 conda, Release 24 installer for Windows 2. Verify your installer hashes. 3. Double-click the .exe file. 4. Follow the instructions on the screen. If you are unsure about any setting, accept the defaults. You can change them0 码力 | 799 页 | 5.26 MB | 8 月前3
Conda 24.7.x Documentationg. /Users/my-username/conda or C:\Users\my-username\conda). Regular installation Follow the instructions for your operating system: • Windows • macOS • Linux Installing in silent mode You can use for deployment or testing or building services, such as GitHub Actions. Follow the silent-mode instructions for your operating system: • Windows • macOS • Linux Cryptographic hash verification SHA-256 installer for Windows 2. Verify your installer hashes. 3. Double-click the .exe file. 4. Follow the instructions on the screen. If you are unsure about any setting, accept the defaults. You can change them0 码力 | 808 页 | 4.97 MB | 8 月前3
Conda 24.1.x DocumentationChapter 4. Contributors welcome conda, Release 24.1.2.dev2 Regular installation Follow the instructions for your operating system: • Windows • macOS • Linux Installing in silent mode You can use for deployment or testing or building services, such as GitHub Actions. Follow the silent-mode instructions for your operating system: • Windows • macOS • Linux Cryptographic hash verification SHA-256 installer for Windows 2. Verify your installer hashes. 3. Double-click the .exe file. 4. Follow the instructions on the screen. If you are unsure about any setting, accept the defaults. You can change them0 码力 | 795 页 | 4.73 MB | 8 月前3
共 141 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15













